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

Class Auth

source code

SPyRO.policies.MixinDenyUnderscore --+    
                                     |    
       SPyRO.policies.MixinCheckDB --+    
                                     |    
     SPyRO.policies.MixinAllowCall --+    
                                     |    
       SPyRO.policies.MixinDenyAll --+    
                                     |    
          SPyRO.policies.AuthAllowCall --+
                                         |
                                        Auth

Instance Methods [hide private]
 
__init__(self, environ=None)
Creates an Auth object...
source code
 
public_authenticator(self)
Creates a public authentity manager
source code
 
_auth(self, req)
Check credentials
source code
 
_rawauth(self, auth, objname, attrname) source code
 
_rawauth_(self, auth, objname, attrname) source code

Inherited from SPyRO.policies.MixinDenyUnderscore (private): _isgood

Inherited from SPyRO.policies.MixinCheckDB (private): _initCheckDB

Inherited from SPyRO.policies.MixinAllowCall: can_call, can_get

Inherited from SPyRO.policies.MixinDenyAll: can_del, can_follow_objname, can_register, can_set

Method Details [hide private]

__init__(self, environ=None)
(Constructor)

source code 
Creates an Auth object
|environ| is a AuthEnviron describing the methods to perform authentications

Rules of permissions (self.perm):

self.perm is a dictionary (methodname => rule)
self.permobjects (Same but for an object level management)

Rules:
if self.perm[methodname] doesn't exists
    The method needs a valid authentication, but not an special user

if self.perm[methodname] is True
    The method is public and everyone is allowed to access it

if self.perm[methodname] is False
    The method is private and cannot be accessed from SPyRO

if self.perm[methodname] is [ [list-of-valid-users], [list-of-valid-groups], [list-of-non-valid-users] ]
    Restricts the execution of the method

Overrides: SPyRO.policies.AuthAllowCall.__init__

_auth(self, req)

source code 
Check credentials
Overrides: SPyRO.policies.MixinCheckDB._auth
(inherited documentation)