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

Module auth

source code

Classes [hide private]
  SystemPrincipal
Class representing the default "system" principal.
Functions [hide private]
 
set_principal(principal)
Set the current principal (user) of the system.
source code
pulp.server.db.model.User instance if one was specified in set_principal; pulp.server.auth.auth.SystemPrincipal otherwise
get_principal()
Get the current principal (user) of the system.
source code
 
clear_principal()
Clear the current principal (user) of the system.
source code
Variables [hide private]
  _storage = threading.local()
Function Details [hide private]

set_principal(principal)

source code 

Set the current principal (user) of the system.

Parameters:
  • principal - current system user

get_principal()

source code 

Get the current principal (user) of the system.

Returns: pulp.server.db.model.User instance if one was specified in set_principal; pulp.server.auth.auth.SystemPrincipal otherwise
current principal

clear_principal()

source code 

Clear the current principal (user) of the system. This resets the principal to a "system" default.