org.views.auth
The authentication views.
Functions
|
|
|
Handles the login requests. |
|
Handles the user registration. |
|
|
|
|
|
Use this function if you want to go the way to the external auth |
|
Handles the logout requests |
|
Handles the GET and POST password reset requests. |
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- org.views.auth.redirect_to_userprofile(self: onegov.user.Auth, username: str | None, request: onegov.org.request.OrgRequest) bool [source]
- org.views.auth.handle_login(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.LoginForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]
Handles the login requests.
- org.views.auth.handle_registration(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.RegistrationForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]
Handles the user registration.
- org.views.auth.handle_activation(self: onegov.user.Auth, request: onegov.org.request.OrgRequest) webob.Response [source]
- org.views.auth.do_logout(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, to: str | None = None) webob.Response [source]
- org.views.auth.do_logout_with_external_provider(self: onegov.user.Auth, request: onegov.org.request.OrgRequest) webob.Response [source]
Use this function if you want to go the way to the external auth provider first and then logout on redirect.
- org.views.auth.view_logout(self: onegov.user.Auth, request: onegov.org.request.OrgRequest) webob.Response [source]
Handles the logout requests
- org.views.auth.handle_password_reset_request(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.RequestPasswordResetForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]
Handles the GET and POST password reset requests.
- org.views.auth.handle_password_reset(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.PasswordResetForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]
- org.views.auth.handle_mtan_second_factor(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.MTANForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]
- org.views.auth.handle_mtan_second_factor_setup(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.RequestMTANForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]
- org.views.auth.handle_totp_second_factor(self: onegov.user.Auth, request: onegov.org.request.OrgRequest, form: onegov.user.forms.TOTPForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response [source]