mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
994 B
27 lines
994 B
# coding:utf-8
|
|
#
|
|
from django.urls import path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .. import api
|
|
|
|
app_name = 'authentication'
|
|
router = DefaultRouter()
|
|
router.register('access-keys', api.AccessKeyViewSet, 'access-key')
|
|
|
|
|
|
urlpatterns = [
|
|
# path('token/', api.UserToken.as_view(), name='user-token'),
|
|
path('auth/', api.TokenCreateApi.as_view(), name='user-auth'),
|
|
path('tokens/', api.TokenCreateApi.as_view(), name='auth-token'),
|
|
path('mfa/challenge/', api.MFAChallengeApi.as_view(), name='mfa-challenge'),
|
|
path('connection-token/',
|
|
api.UserConnectionTokenApi.as_view(), name='connection-token'),
|
|
path('otp/verify/', api.UserOtpVerifyApi.as_view(), name='user-otp-verify'),
|
|
path('login-confirm-ticket/status/', api.TicketStatusApi.as_view(), name='login-confirm-ticket-status'),
|
|
path('login-confirm-settings/<uuid:user_id>/', api.LoginConfirmSettingUpdateApi.as_view(), name='login-confirm-setting-update')
|
|
]
|
|
|
|
urlpatterns += router.urls
|
|
|