Utilities for authentication and authorization.
Default configuration values for this module. Keys are:
Provides common utilities and configuration for Auth.
Initializes the session store.
Parameters: |
|
---|
Authentication provider for a single request.
Initializes the auth provider for a request.
Parameters: | request – A webapp2.Request instance. |
---|
Returns a user based on password credentials.
Parameters: |
|
---|---|
Returns: | A user dict or None. |
Raises: | InvalidAuthIdError or InvalidPasswordError. |
Returns a user based on the current session.
Parameters: | save_session – If True, saves the user in the session if authentication succeeds. |
---|---|
Returns: | A user dict or None. |
Returns a user based on an authentication token.
Parameters: |
|
---|---|
Returns: | A user dict or None. |
Saves a user in the session.
Parameters: |
|
---|---|
Remember: | If True, session is set to be persisted. |
Returns an instance of AuthStore from the app registry.
It’ll try to get it from the current app registry, and if it is not registered it’ll be instantiated and registered. A second call to this function will return the same instance.
Parameters: |
|
---|
Sets an instance of AuthStore in the app registry.
Parameters: |
|
---|
Returns an instance of Auth from the request registry.
It’ll try to get it from the current request registry, and if it is not registered it’ll be instantiated and registered. A second call to this function will return the same instance.
Parameters: |
|
---|
Sets an instance of Auth in the request registry.
Parameters: |
|
---|