django-sqrl-2/sqrl/urls.py

23 lines
776 B
Python
Raw Normal View History

2019-09-02 02:03:23 -05:00
# -*- coding: utf-8 -*-
from django.urls import path, re_path
from .views import (
SQRLAuthView,
SQRLCompleteRegistrationView,
SQRLIdentityManagementView,
SQRLLoginView,
SQRLStatusView,
2019-09-02 09:42:24 -05:00
AdminSiteSQRLIdentityManagementView
2019-09-02 02:03:23 -05:00
)
2019-09-02 04:56:45 -05:00
app_name = "sqrl"
2019-09-02 02:03:23 -05:00
urlpatterns = [
path("auth/", SQRLAuthView.as_view(), name="auth"),
path("login/", SQRLLoginView.as_view(), name="login"),
2019-09-02 04:56:45 -05:00
path("manage/", SQRLIdentityManagementView.as_view(), name='manage'),
2019-09-02 02:03:23 -05:00
path("register/",SQRLCompleteRegistrationView.as_view(), name='complete-registration'),
re_path(r"^status/(?P<transaction>[A-Za-z0-9_-]{43})/$", SQRLStatusView.as_view(), name='status'),
2019-09-02 09:42:24 -05:00
path('admin/sqrl_manage/', AdminSiteSQRLIdentityManagementView.as_view(), name='admin-sqrl_manage'),
2019-09-02 02:03:23 -05:00
]