Package auth3k :: Module authweb :: Class AuthEnviron
[hide private]
[frames] | no frames]

Class AuthEnviron

source code

An environment to authenticate objects

Objects of this class must describe Expirations, Autentication Server Strings, Expiration Dates, Overload of users, Generators of String Authenticators, Authentications Functions, etc.

Instance Methods [hide private]
 
__init__(self, seedfilename=None, expirationsoft=86400, expirationhard=864000, minseeds=100, maxseeds=200) source code
 
_read_global_auth(self) source code
 
_random_auth(self, size)
Creates a |size|-set of random strings to be used as authentication string generators
source code
 
_update_global_auth(self)
Change authorization codes
source code
 
getgroup(self, groupname)
Returns the list of users in |groupname|
source code
 
validate_user(self, user, password)
Autenticate against its system's password.
source code
 
update_authentication(self, user, auth) source code
 
create_authentication(self, user, password)
Creates an authentication string if the user and password are valid.
source code
 
_create_authentication(self, user) source code
 
authenticate(self, user, auth, checksoft=True)
Checks and validates the authenticity of the |auth| string for |user|
source code
Method Details [hide private]

getgroup(self, groupname)

source code 

Returns the list of users in |groupname|

This method must be overloaded to overload groups

validate_user(self, user, password)

source code 
Autenticate against its system's password. If you need to validate against any other source of passwords or validations this is the right method to overload.

create_authentication(self, user, password)

source code 
Creates an authentication string if the user and password are valid. If an error happen, it returns an empty authentication string.

authenticate(self, user, auth, checksoft=True)

source code 

Checks and validates the authenticity of the |auth| string for |user|

It can update the global authentication strings