Trees | Indices | Help |
---|
|
object --+ | common.common.InitMixin --+ | extern.log.log.Loggable --+ | component.BaseComponent --+ | Bouncer --+ | AuthSessionBouncer
I am a bouncer that handle pending authentication sessions. I am storing the last keycard of an authenticating session.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
bool |
|
||
flumotion.common.keycards.Keycard or None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
A subclass should do as little as possible in its init method. In particular, it should not try to access resources. Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.
|
Override to cleanup sub-class specific data when the bouncer is disabled.
|
Extracts session info from a keycard. Used by updateAuthSession to store session info. Must be overridden by subclasses. |
Tells if a keycard is related to a pending authentication session. It basically check if the id of the keycard is known.
|
|
Starts an authentication session with a keycard. The keycard id will be generated and set. The session info will be extracted from the keycard by calling the method do_extractKeycardInfo, and can be retrieved by calling getAuthSessionInfo. If a the keycard already have and id, and there is an authentication session with this id, the session info is updated from the keycard, and it return True.
|
Updates an authentication session with the last keycard. The session info will be extracted from the keycard by calling the method do_extractKeycardInfo, and can be retrieved by calling getAuthSessionInfo.
|
Cancels the authentication session associated with the specified keycard. Used when doing challenge/response authentication.
|
Confirms the authentication session represented by the specified keycard is authenticated. This will add the specified keycard to the bouncer keycard list like addKeycard would do but without changing the keycard id. The authentication session data is cleaned up. If the bouncer already have a keycard with the same id, the authentication is confirmed but the bouncer keycard is NOT updated. FIXME: is it what we want ? ? ?
|
Updates the authentication session data. Can be used bu subclasses to modify the data directly. |
Override to expire keycards managed by sub-classes.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 13 06:17:01 2013 | http://epydoc.sourceforge.net |