Package pulp :: Package server :: Package webservices :: Module auth
[hide private]
[frames] | no frames]

Module auth

source code

Classes [hide private]
  HTTPAuthError
Functions [hide private]
 
is_http_basic_auth(credentials)
Check if the credentials are for http basic authorization
source code
 
http_basic_username_password(credentials)
Get the username and password from http basic authorization credentials
source code
 
is_http_digest_auth(credentials)
Check if the credentials are for http digest authorization
source code
 
http_digest_username_password(credentials)
Get the username and password from http digest authorization credentials
source code
 
check_roles(roles)
Check the http headers for valid authentication information
source code
Variables [hide private]
  _whitespace_regex = re.compile('\w+')
Function Details [hide private]

is_http_basic_auth(credentials)

source code 

Check if the credentials are for http basic authorization

Parameters:
  • credentials (str) - value of the HTTP_AUTHORIZATION header
Returns:
True if the credentials are for http basic authorization, False otherwise

is_http_digest_auth(credentials)

source code 

Check if the credentials are for http digest authorization

Parameters:
  • credentials (str) - value of the HTTP_AUTHORIZATION header
Returns:
True if the credentials are for http digest authorization, False otherwise