django-sqrl-2/sqrl/urls.py

19 lines
611 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,
)
urlpatterns = [
path("auth/", SQRLAuthView.as_view(), name="auth"),
path("login/", SQRLLoginView.as_view(), name="login"),
path("manage/", SQRLIdentityManagementView.as_view(), name='manage')
path("register/",SQRLCompleteRegistrationView.as_view(), name='complete-registration'),
re_path(r"^status/(?P<transaction>[A-Za-z0-9_-]{43})/$", SQRLStatusView.as_view(), name='status'),
]