Home | Trees | Indices | Help |
|
---|
|
object --+ | SqlAlchemyIdentityProvider
IdentityProvider that uses a model from a database (via SQLAlchemy).
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Validate the identity represented by user_name using the password. 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 dependent object (TG_User or similar) groups: a set of group names permissions: a set of permission names |
Check the user_name and password against existing credentials. Note: user_name is not used here, but is required by external password validation schemes that might override this method. If you use SqlAlchemyIdentityProvider, but want to check the passwords against an external source (i.e. PAM, LDAP, Windows domain, etc), subclass SqlAlchemyIdentityProvider, and override this method. |
Lookup the principal represented by user_name. Return None if there is no principal for the given user ID. Must return an object with the following properties: user_name: original user name user: a provider dependent object (TG_User or similar) groups: a set of group names permissions: a set of permission names |
Return anonymous identity. Must return an object with the following properties: user_name: original user name user: a provider dependent object (TG_User or similar) groups: a set of group names permissions: a set of permission names |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 17:20:01 2019 | http://epydoc.sourceforge.net |