2018-11-11 12:41:48 +00:00
|
|
|
"""passbook URL Configuration"""
|
2019-06-25 16:00:54 +00:00
|
|
|
from django.urls import path
|
2019-10-01 08:24:10 +00:00
|
|
|
from structlog import get_logger
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-06-25 16:00:54 +00:00
|
|
|
from passbook.core.views import authentication, overview, user
|
2019-10-07 14:33:48 +00:00
|
|
|
from passbook.factors import view
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-10-04 08:08:53 +00:00
|
|
|
LOGGER = get_logger()
|
2018-11-11 12:41:48 +00:00
|
|
|
|
2019-06-25 16:00:54 +00:00
|
|
|
urlpatterns = [
|
2018-12-10 15:58:35 +00:00
|
|
|
# Authentication views
|
2019-12-31 11:51:16 +00:00
|
|
|
path("auth/login/", authentication.LoginView.as_view(), name="auth-login"),
|
|
|
|
path("auth/logout/", authentication.LogoutView.as_view(), name="auth-logout"),
|
|
|
|
path("auth/sign_up/", authentication.SignUpView.as_view(), name="auth-sign-up"),
|
|
|
|
path(
|
|
|
|
"auth/sign_up/<uuid:nonce>/confirm/",
|
|
|
|
authentication.SignUpConfirmView.as_view(),
|
|
|
|
name="auth-sign-up-confirm",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"auth/process/denied/",
|
|
|
|
view.FactorPermissionDeniedView.as_view(),
|
|
|
|
name="auth-denied",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"auth/password/reset/<uuid:nonce>/",
|
|
|
|
authentication.PasswordResetView.as_view(),
|
|
|
|
name="auth-password-reset",
|
|
|
|
),
|
|
|
|
path("auth/process/", view.AuthenticationView.as_view(), name="auth-process"),
|
|
|
|
path(
|
|
|
|
"auth/process/<slug:factor>/",
|
|
|
|
view.AuthenticationView.as_view(),
|
|
|
|
name="auth-process",
|
|
|
|
),
|
2018-12-10 15:58:35 +00:00
|
|
|
# User views
|
2019-12-31 11:51:16 +00:00
|
|
|
path("_/user/", user.UserSettingsView.as_view(), name="user-settings"),
|
|
|
|
path("_/user/delete/", user.UserDeleteView.as_view(), name="user-delete"),
|
|
|
|
path(
|
|
|
|
"_/user/change_password/",
|
|
|
|
user.UserChangePasswordView.as_view(),
|
|
|
|
name="user-change-password",
|
|
|
|
),
|
2018-12-10 15:58:35 +00:00
|
|
|
# Overview
|
2019-12-31 11:51:16 +00:00
|
|
|
path("", overview.OverviewView.as_view(), name="overview"),
|
2018-11-16 08:10:35 +00:00
|
|
|
]
|