HTTP authentication data as a (user, password) tuple. This implementation currently supports basic (not digest) authentication only. If the authentication happened at a higher level (e.g. in the front web-server or a middleware), the password field is None, but
(self)
| 1105 | |
| 1106 | @property |
| 1107 | def auth(self): |
| 1108 | """ HTTP authentication data as a (user, password) tuple. This |
| 1109 | implementation currently supports basic (not digest) authentication |
| 1110 | only. If the authentication happened at a higher level (e.g. in the |
| 1111 | front web-server or a middleware), the password field is None, but |
| 1112 | the user field is looked up from the ``REMOTE_USER`` environ |
| 1113 | variable. On any errors, None is returned. """ |
| 1114 | basic = parse_auth(self.environ.get('HTTP_AUTHORIZATION','')) |
| 1115 | if basic: return basic |
| 1116 | ruser = self.environ.get('REMOTE_USER') |
| 1117 | if ruser: return (ruser, None) |
| 1118 | return None |
| 1119 | |
| 1120 | @property |
| 1121 | def remote_route(self): |
nothing calls this directly
no test coverage detected