MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / auth

Method auth

thirdparty/bottle/bottle.py:1892–1903  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

parse_authFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected