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
|
2023-09-11 10:15:03 +00:00
|
|
|
from ..backends.passkey.urls import urlpatterns as passkey_urlpatterns
|
2019-02-27 12:55:28 +00:00
|
|
|
|
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')
|
2022-04-13 12:24:56 +00:00
|
|
|
router.register('temp-tokens', api.TempTokenViewSet, 'temp-token')
|
2022-07-11 10:09:06 +00:00
|
|
|
router.register('connection-token', api.ConnectionTokenViewSet, 'connection-token')
|
|
|
|
router.register('super-connection-token', api.SuperConnectionTokenViewSet, 'super-connection-token')
|
2023-10-13 06:40:40 +00:00
|
|
|
router.register('confirm', api.UserConfirmationViewSet, 'confirm')
|
2019-08-21 12:27:21 +00:00
|
|
|
|
2019-02-27 12:55:28 +00:00
|
|
|
urlpatterns = [
|
2023-12-08 07:11:49 +00:00
|
|
|
path('<str:backend>/qr/unbind/', api.QRUnBindForUserApi.as_view(), name='qr-unbind'),
|
|
|
|
path('<str:backend>/qr/unbind/<uuid:user_id>/', api.QRUnBindForAdminApi.as_view(), name='qr-unbind-for-admin'),
|
2021-03-24 11:01:35 +00:00
|
|
|
|
2023-09-11 10:15:03 +00:00
|
|
|
path('feishu/event/subscription/callback/', api.FeiShuEventSubscriptionCallback.as_view(),
|
|
|
|
name='feishu-event-subscription-callback'),
|
2021-08-12 08:44:06 +00:00
|
|
|
|
2024-03-22 10:05:43 +00:00
|
|
|
path('lark/event/subscription/callback/', api.LarkEventSubscriptionCallback.as_view(),
|
|
|
|
name='lark-event-subscription-callback'),
|
|
|
|
|
2019-11-05 10:46:29 +00:00
|
|
|
path('auth/', api.TokenCreateApi.as_view(), name='user-auth'),
|
2022-07-12 08:02:41 +00:00
|
|
|
path('confirm-oauth/', api.ConfirmBindORUNBindOAuth.as_view(), name='confirm-oauth'),
|
2019-08-21 12:27:21 +00:00
|
|
|
path('tokens/', api.TokenCreateApi.as_view(), name='auth-token'),
|
2021-11-10 03:30:48 +00:00
|
|
|
path('mfa/verify/', api.MFAChallengeVerifyApi.as_view(), name='mfa-verify'),
|
|
|
|
path('mfa/challenge/', api.MFAChallengeVerifyApi.as_view(), name='mfa-challenge'),
|
|
|
|
path('mfa/select/', api.MFASendCodeApi.as_view(), name='mfa-select'),
|
2022-11-04 05:56:55 +00:00
|
|
|
path('mfa/send-code/', api.MFASendCodeApi.as_view(), name='mfa-send-code'),
|
|
|
|
path('password/reset-code/', api.UserResetPasswordSendCodeApi.as_view(), name='reset-password-code'),
|
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'),
|
2024-03-13 10:56:44 +00:00
|
|
|
path('user-session/', api.UserSessionApi.as_view(), name='user-session'),
|
2019-02-27 12:55:28 +00:00
|
|
|
]
|
2018-11-09 06:54:38 +00:00
|
|
|
|
2023-09-11 10:15:03 +00:00
|
|
|
urlpatterns += router.urls + passkey_urlpatterns
|