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)
| 1890 | |
| 1891 | @property |
| 1892 | def auth(self): |
| 1893 | """ HTTP authentication data as a (user, password) tuple. This |
| 1894 | implementation currently supports basic (not digest) authentication |
| 1895 | only. If the authentication happened at a higher level (e.g. in the |
| 1896 | front web-server or a middleware), the password field is None, but |
| 1897 | the user field is looked up from the ``REMOTE_USER`` environ |
| 1898 | variable. On any errors, None is returned. """ |
| 1899 | basic = parse_auth(self.environ.get('HTTP_AUTHORIZATION', '')) |
| 1900 | if basic: return basic |
| 1901 | ruser = self.environ.get('REMOTE_USER') |
| 1902 | if ruser: return (ruser, None) |
| 1903 | return None |
| 1904 | |
| 1905 | @property |
| 1906 | def remote_route(self): |
nothing calls this directly
no test coverage detected