MCPcopy Index your code
hub / github.com/pyload/pyload / auth

Method auth

module/lib/bottle.py:1107–1118  ·  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

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

Callers

nothing calls this directly

Calls 2

parse_authFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected