2018-11-09 06:54:38 +00:00
|
|
|
# coding:utf-8
|
|
|
|
#
|
|
|
|
|
2019-02-28 06:41:33 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2019-02-28 03:58:48 +00:00
|
|
|
from django.urls import path, include
|
2019-02-27 12:55:28 +00:00
|
|
|
|
2019-02-27 00:45:00 +00:00
|
|
|
from .. import views
|
2018-11-09 06:54:38 +00:00
|
|
|
|
|
|
|
app_name = 'authentication'
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# openid
|
2019-02-28 03:58:48 +00:00
|
|
|
path('openid/', include(('authentication.backends.openid.urls', 'authentication'), namespace='openid')),
|
2019-02-27 12:55:28 +00:00
|
|
|
|
|
|
|
# login
|
|
|
|
path('login/', views.UserLoginView.as_view(), name='login'),
|
|
|
|
path('login/otp/', views.UserLoginOtpView.as_view(), name='login-otp'),
|
2019-10-30 05:18:11 +00:00
|
|
|
path('login/wait-confirm/', views.UserLoginWaitConfirmView.as_view(), name='login-wait-confirm'),
|
|
|
|
path('login/guard/', views.UserLoginGuardView.as_view(), name='login-guard'),
|
2019-02-27 12:55:28 +00:00
|
|
|
path('logout/', views.UserLogoutView.as_view(), name='logout'),
|
2018-11-09 06:54:38 +00:00
|
|
|
]
|