2019-02-27 12:55:28 +00:00
|
|
|
# coding:utf-8
|
|
|
|
#
|
|
|
|
from django.urls import path
|
2019-08-21 12:27:21 +00:00
|
|
|
from rest_framework.routers import DefaultRouter
|
2019-02-27 12:55:28 +00:00
|
|
|
|
|
|
|
from .. import api
|
|
|
|
|
2019-10-30 05:18:11 +00:00
|
|
|
app_name = 'authentication'
|
2019-08-21 12:27:21 +00:00
|
|
|
router = DefaultRouter()
|
|
|
|
router.register('access-keys', api.AccessKeyViewSet, 'access-key')
|
2020-07-31 10:18:52 +00:00
|
|
|
router.register('sso', api.SSOViewSet, 'sso')
|
2021-02-23 06:37:42 +00:00
|
|
|
router.register('connection-token', api.UserConnectionTokenViewSet, 'connection-token')
|
2019-08-21 12:27:21 +00:00
|
|
|
|
|
|
|
|
2019-02-27 12:55:28 +00:00
|
|
|
urlpatterns = [
|
|
|
|
# path('token/', api.UserToken.as_view(), name='user-token'),
|
2021-03-24 11:01:35 +00:00
|
|
|
path('wecom/qr/unbind/', api.WeComQRUnBindForUserApi.as_view(), name='wecom-qr-unbind'),
|
|
|
|
path('wecom/qr/unbind/<uuid:user_id>/', api.WeComQRUnBindForAdminApi.as_view(), name='wecom-qr-unbind-for-admin'),
|
|
|
|
|
|
|
|
path('dingtalk/qr/unbind/', api.DingTalkQRUnBindForUserApi.as_view(), name='dingtalk-qr-unbind'),
|
|
|
|
path('dingtalk/qr/unbind/<uuid:user_id>/', api.DingTalkQRUnBindForAdminApi.as_view(), name='dingtalk-qr-unbind-for-admin'),
|
|
|
|
|
2019-11-05 10:46:29 +00:00
|
|
|
path('auth/', api.TokenCreateApi.as_view(), name='user-auth'),
|
2019-08-21 12:27:21 +00:00
|
|
|
path('tokens/', api.TokenCreateApi.as_view(), name='auth-token'),
|
|
|
|
path('mfa/challenge/', api.MFAChallengeApi.as_view(), name='mfa-challenge'),
|
2019-05-20 04:30:55 +00:00
|
|
|
path('otp/verify/', api.UserOtpVerifyApi.as_view(), name='user-otp-verify'),
|
2021-03-24 11:01:35 +00:00
|
|
|
path('password/verify/', api.UserPasswordVerifyApi.as_view(), name='user-password-verify'),
|
2019-11-15 10:55:35 +00:00
|
|
|
path('login-confirm-ticket/status/', api.TicketStatusApi.as_view(), name='login-confirm-ticket-status'),
|
2019-10-31 10:23:43 +00:00
|
|
|
path('login-confirm-settings/<uuid:user_id>/', api.LoginConfirmSettingUpdateApi.as_view(), name='login-confirm-setting-update')
|
2019-02-27 12:55:28 +00:00
|
|
|
]
|
2018-11-09 06:54:38 +00:00
|
|
|
|
2019-08-21 12:27:21 +00:00
|
|
|
urlpatterns += router.urls
|