This module provides the ndb models used in EngineAuth.
Stores user authentication credentials or authorization ids.
Returns a user object based on a auth_id.
Parameters: | auth_id – String representing a unique id for the user. Examples:
|
---|---|
Returns: | A user object. |
Creates a new user.
Parameters: |
|
---|---|
Returns: | A tuple (boolean, info). The boolean indicates if the user was created. If creation succeeds, info is the user entity; otherwise it is a list of duplicated unique properties that caused creation to fail. |
ndb.Expando is used to store the user_info object as well as any additional information specific to a strategy.
Stores validation tokens for users.
Returns a token key.
Parameters: |
|
---|---|
Returns: | model.Key containing a string id in the following format: {user_id}.{subject}.{token} |
Creates a new token for the given user.
Parameters: |
|
---|---|
Returns: | The newly created UserToken. |