diff --git a/trac/web/auth.py b/trac/web/auth.py
|
a
|
b
|
|
| 59 | 59 | ignore_case = BoolOption('trac', 'ignore_auth_case', 'false', |
| 60 | 60 | """Whether login names should be converted to lower case |
| 61 | 61 | (''since 0.9'').""") |
| | 62 | |
| | 63 | secure_auth_cookie = BoolOption('trac', 'secure_auth_cookie', 'false', |
| | 64 | """When true, set the `secure` flag on the `trac_auth` authentication |
| | 65 | cookie so that it is only sent back on HTTPS connections |
| | 66 | (''since 0.11.2'').""") |
| 62 | 67 | |
| 63 | 68 | # IAuthenticator methods |
| 64 | 69 | |
| … |
… |
|
| 144 | 149 | req.authname = remote_user |
| 145 | 150 | req.outcookie['trac_auth'] = cookie |
| 146 | 151 | req.outcookie['trac_auth']['path'] = req.base_path or '/' |
| | 152 | if self.secure_auth_cookie: |
| | 153 | req.outcookie['trac_auth']['secure'] = True |
| 147 | 154 | |
| 148 | 155 | def _do_logout(self, req): |
| 149 | 156 | """Log the user out. |