2019-02-27 12:55:28 +00:00
|
|
|
# coding:utf-8
|
|
|
|
#
|
2019-02-28 06:41:33 +00:00
|
|
|
|
2019-02-27 12:55:28 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
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-08-21 12:27:21 +00:00
|
|
|
router = DefaultRouter()
|
|
|
|
router.register('access-keys', api.AccessKeyViewSet, 'access-key')
|
|
|
|
|
|
|
|
|
2019-02-27 12:55:28 +00:00
|
|
|
app_name = 'authentication'
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# path('token/', api.UserToken.as_view(), name='user-token'),
|
|
|
|
path('auth/', api.UserAuthApi.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-02-27 12:55:28 +00:00
|
|
|
path('connection-token/',
|
|
|
|
api.UserConnectionTokenApi.as_view(), name='connection-token'),
|
|
|
|
path('otp/auth/', api.UserOtpAuthApi.as_view(), name='user-otp-auth'),
|
2019-05-20 04:30:55 +00:00
|
|
|
path('otp/verify/', api.UserOtpVerifyApi.as_view(), name='user-otp-verify'),
|
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
|
|
|
|
|