This viewset allows for quick integration of all standard Django authentication views into the URL configuration. It provides customization options for password change, profile view, and integration with Django-allauth if required. By using this viewset, developers can easily set up authentication-related routes, including login, logout, password change, password reset, and profile management, with minimal configuration effort.
viewflow.contrib.auth.AuthViewset(*, allow_password_change=True, with_profile_view=True, **kwargs)¶Class-based URL configuration for django.contrib.auth.
This viewset provides URL patterns for user authentication, including login, logout, and password management views.
urlpatterns = [
path('accounts/', AuthViewset(
allow_password_change=False,
login_view=views.LoginView.as_view(
authentication_form=MyAuthForm
),
).urls),
]
__init__(*, allow_password_change=True, with_profile_view=True, **kwargs)¶Initialize the viewset with options for password change and profile view.
get_login_view_kwargs(**kwargs)¶Get keyword arguments for the login view.
get_logout_view_kwargs(**kwargs)¶Get keyword arguments for the logout view.
get_pass_change_done_view_kwargs(**kwargs)¶Get keyword arguments for the password change done view.
get_pass_change_view_kwargs(**kwargs)¶Get keyword arguments for the password change view.
get_pass_reset_complete_view_kwargs(**kwargs)¶Get keyword arguments for the password reset complete view.
get_pass_reset_confirm_view_kwargs(**kwargs)¶Get keyword arguments for the password reset confirm view.
get_pass_reset_done_view_kwargs(**kwargs)¶Get keyword arguments for the password reset request done view.
get_pass_reset_view_kwargs(**kwargs)¶Get keyword arguments for the password reset request view.
get_profile_view_kwargs(**kwargs)¶Get keyword arguments for the profile view.
login_path¶Property to get the URL pattern for the login view.
login_view¶Property to get the configured login view.
logout_path¶Property to get the URL pattern for the logout view.
logout_view¶Property to get the configured logout view.
logout_view_class¶alias of LogoutView
pass_change_done_path¶Property to get the URL pattern for the password change done view.
pass_change_done_view¶Property to get the configured password change done view.
pass_change_done_view_class¶alias of PasswordChangeDoneView
pass_change_path¶Property to get the URL pattern for the password change view.
pass_change_view¶Property to get the configured password change view.
pass_change_view_class¶alias of PasswordChangeView
pass_reset_complete_path¶Property to get the URL pattern for the password reset complete view.
pass_reset_complete_view¶Property to get the configured password reset complete view.
pass_reset_complete_view_class¶alias of PasswordResetCompleteView
pass_reset_confirm_path¶Property to get the URL pattern for the password reset confirm view.
pass_reset_confirm_view¶Property to get the configured password reset confirm view.
pass_reset_confirm_view_class¶alias of PasswordResetConfirmView
pass_reset_done_path¶Property to get the URL pattern for the password reset request done view.
pass_reset_done_view¶Property to get the configured password reset request done view.
pass_reset_done_view_class¶alias of PasswordResetDoneView
pass_reset_path¶Property to get the URL pattern for the password reset request view.
pass_reset_view¶Property to get the configured password reset request view.
pass_reset_view_class¶alias of PasswordResetView
profile_path¶Property to get the URL pattern for the profile view.
profile_view¶Property to get the configured profile view.
profile_view_class¶alias of ProfileView