magpie.api.login.login
¶
Module Contents¶
Functions¶
|
|
|
|
|
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. |
-
magpie.api.login.login.
verify_provider
(provider_name: magpie.typedefs.Str) → None[source]¶ - Raises
HTTPNotFound – if provider name is not one of known providers.
-
magpie.api.login.login.
signin_in_param
(request)[source]¶ Signs in a user session using query parameters.
-
magpie.api.login.login.
login_success_ziggurat
(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
-
magpie.api.login.login.
login_failure
(request, reason=None)[source]¶ Response from redirect upon login failure, either because of invalid or incorrect user credentials.
See also
-
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.