org.views.auth

The authentication views.

Functions

handle_login(→ RenderData | Response)

Handles the login requests.

handle_registration(→ RenderData | Response)

Handles the user registration.

handle_activation(→ webob.Response)

do_logout(→ webob.Response)

do_logout_with_external_provider(→ webob.Response)

Use this function if you want to go the way to the external auth

view_logout(→ webob.Response)

Handles the logout requests

handle_password_reset_request(→ RenderData | Response)

Handles the GET and POST password reset requests.

handle_password_reset(→ RenderData | Response)

handle_request_mtan(→ RenderData | Response)

handle_authenticate_mtan(→ RenderData | Response)

Module Contents

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_request_mtan(self: onegov.org.auth.MTANAuth, request: onegov.org.request.OrgRequest, form: onegov.org.forms.RequestMTANForm, layout: Layout | None = None) RenderData | Response[source]
org.views.auth.handle_authenticate_mtan(self: onegov.org.auth.MTANAuth, request: onegov.org.request.OrgRequest, form: onegov.org.forms.MTANForm, layout: Layout | None = None) RenderData | Response[source]