Package turbogears :: Package identity :: Module visitor :: Class IdentityVisitPlugin

Class IdentityVisitPlugin

source code

object --+
         |
        IdentityVisitPlugin

Visit plugin tying the Identity framework to the visit management.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
identity_from_request(self, visit_key)
Retrieve identity information from the HTTP request.
source code
 
decode_basic_credentials(self, credentials)
Decode base64 user_name:password credentials used in Basic Auth.
source code
 
identity_from_http_auth(self, visit_key)
Try to get authentication data from Authorization request header.
source code
 
identity_from_visit(self, visit_key)
Load identity from Identity provider.
source code
 
identity_from_form(self, visit_key)
Inspect the request params to pull out identity information.
source code
 
record_request(self, visit)
Authenticate request and try to associate the visit with an identity.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

identity_from_request(self, visit_key)

source code 

Retrieve identity information from the HTTP request.

Checks first for form fields defining the identity then for a cookie. If no identity is found, returns an anonymous identity.

decode_basic_credentials(self, credentials)

source code 

Decode base64 user_name:password credentials used in Basic Auth.

Returns a list with username in element 0 and password in element 1.

identity_from_http_auth(self, visit_key)

source code 

Try to get authentication data from Authorization request header.

Only HTTP basic auth is handled at the moment.

identity_from_form(self, visit_key)

source code 

Inspect the request params to pull out identity information.

Must have fields for user name, password, and a login submit button.

Returns an identity object whose class depends on the current identity provider or None if the form contained no identity information or the information was incorrect.