Package bodhi :: Package identity :: Module sobzprovider :: Class SoBugzillaIdentityProvider
[hide private]
[frames] | no frames]

Class SoBugzillaIdentityProvider

source code

                                              object --+    
                                                       |    
turbogears.identity.soprovider.SqlObjectIdentityProvider --+
                                                           |
                                                          SoBugzillaIdentityProvider

IdentityProvider that authenticates users against Bugzilla via XML-RPC

Instance Methods [hide private]
 
__init__(self) source code
 
validate_identity(self, user_name, password, visit_key)
Look up the identity represented by user_name and determine whether the password is correct.
source code
 
validate_password(self, user, user_name, password)
Complete hack, but it works.
source code

Inherited from turbogears.identity.soprovider.SqlObjectIdentityProvider: anonymous_identity, authenticated_identity, create_provider_model, load_identity

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: turbogears.identity.soprovider.SqlObjectIdentityProvider.__init__

validate_identity(self, user_name, password, visit_key)

source code 

Look up the identity represented by user_name and determine whether the
password is correct.

Must return either None if the credentials weren't valid or an object
with the following properties:
    user_name: original user name
    user: a provider dependant object (TG_User or similar)
    groups: a set of group IDs
    permissions: a set of permission IDs

Overrides: turbogears.identity.soprovider.SqlObjectIdentityProvider.validate_identity
(inherited documentation)

validate_password(self, user, user_name, password)

source code 
Complete hack, but it works. Request bug #1 with the given username and password. If a Fault is thrown, the username/pass is invalid; else, we're good to go.
Overrides: turbogears.identity.soprovider.SqlObjectIdentityProvider.validate_password