magpie.api.login.login¶
Attributes¶
Functions¶
|
|
|
Verifies that the specified name is a valid external provider against the login configuration providers. |
|
Signs in a user session using query parameters. |
|
Signs in a user session. |
|
Response from redirect upon successful login with valid user credentials. |
|
Response from redirect upon login failure, either because of invalid or incorrect user credentials. |
|
Create new user with an External Identity. |
Generates the login response in case of successful external provider identification. |
|
|
Signs in a user session using an external provider. |
|
Signs out the current user session. |
|
Get information about current session. |
|
Get list of login providers. |
Module Contents¶
- magpie.api.login.login.verify_provider(provider_name: magpie.typedefs.Str) None [source]¶
Verifies that the specified name is a valid external provider against the login configuration providers.
- Raises:
HTTPNotFound – if provider name is not one of known providers.
- magpie.api.login.login.signin_in_param_view(request)[source]¶
Signs in a user session using query parameters.
- magpie.api.login.login.login_success_ziggurat_view(request)[source]¶
Response from redirect upon successful login with valid user credentials.
Header
Set-Cookie
from this response will allow creation of the response cookies.See also
sign_in()
- magpie.api.login.login.login_failure_view(request, reason=None)[source]¶
Response from redirect upon login failure, either because of invalid or incorrect user credentials.
See also
sign_in()
- magpie.api.login.login.new_user_external(external_user_name: magpie.typedefs.Str, external_id: magpie.typedefs.Str, email: magpie.typedefs.Str, provider_name: magpie.typedefs.Str, db_session: magpie.typedefs.Session) magpie.models.User [source]¶
Create new user with an External Identity.
- magpie.api.login.login.login_success_external(request: pyramid.request.Request, external_user_name: magpie.typedefs.Str, external_id: magpie.typedefs.Str, email: magpie.typedefs.Str, provider_name: magpie.typedefs.Str) pyramid.httpexceptions.HTTPException [source]¶
Generates the login response in case of successful external provider identification.