assembl.models.social_auth module¶
Models for integration of Python Social Auth.
Bases:
sqlalchemy.ext.declarative.api.Base
,social_sqlalchemy.storage.SQLAlchemyMixin
Encapsulate db.add().
Bases:
assembl.models.social_auth.AppSocialAuthMixin
,social_sqlalchemy.storage.SQLAlchemyAssociationMixin
Bases:
assembl.models.social_auth.AppSocialAuthMixin
,social_sqlalchemy.storage.SQLAlchemyCodeMixin
Bases:
assembl.models.social_auth.AppSocialAuthMixin
,social_sqlalchemy.storage.SQLAlchemyNonceMixin
Bases:
assembl.models.auth.AbstractAgentAccount
,assembl.models.social_auth.AppSocialAuthMixin
,social_core.storage.UserMixin
An account with an external
auth.IdentityProvider
Return if it’s safe to disconnect the social account for the given user
The given user instance is ready to be saved
Create a UserSocialAuth instance for given user
Create a user instance
Disconnect the social account for the given user
Return UserSocialAuth for given provider and uid
Return all the UserSocialAuth instances for given user
Return user instance for given id
Return the username for given user
Return users instances for given email address
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Identity of signature implies identity of underlying account
returns a couple (query, usable), with a sqla query for conflicting similar objects. usable is true if the query has to be enforced; sometimes it makes sense to return un-usable query that will be used to construct queries of subclasses. Note that when a duplicate is found, you’ll often want to expunge the original.
Return True/False if a User instance exists with the given arguments. Arguments are directly passed to filter() manager method.
Return the user model
Return the max length for username