All checks were successful
Build And Test / build-and-push (push) Successful in 2m17s
- Add NHN Cloud credential fields to User model (tenant_id, username, encrypted password, storage_account) - Add API endpoints for credentials CRUD operations - Implement Fernet encryption for password storage Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
1.5 KiB
Python
29 lines
1.5 KiB
Python
from django.urls import path
|
|
from .views import (
|
|
RegisterView, MeView, CustomTokenObtainPairView,
|
|
SSHKeyUploadView, SSHKeyInfoView, SSHKeyRetrieveView,
|
|
UserListView, UserUpdateView,
|
|
NHNCloudCredentialsView, NHNCloudPasswordView
|
|
)
|
|
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView
|
|
from .views_jwks import jwks_view # django-jwks
|
|
|
|
urlpatterns = [
|
|
path('register/', RegisterView.as_view(), name='register'),
|
|
# path('login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('login/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
|
path('verify/', TokenVerifyView.as_view(), name='token_verify'),
|
|
path('me/', MeView.as_view(), name='me'),
|
|
path("ssh-key/", SSHKeyUploadView.as_view(), name="ssh_key_upload"),
|
|
path("ssh-key/info/", SSHKeyInfoView.as_view(), name="ssh_key_info"),
|
|
path("ssh-key/view/", SSHKeyRetrieveView.as_view(), name="ssh_key_retrieve"),
|
|
path(".well-known/jwks.json", jwks_view, name="jwks"), # django-jwks
|
|
# 관리자용 사용자 관리 API
|
|
path('users/', UserListView.as_view(), name='user_list'),
|
|
path('users/<int:pk>/', UserUpdateView.as_view(), name='user_update'),
|
|
# NHN Cloud 자격증명 API
|
|
path('nhn-cloud/', NHNCloudCredentialsView.as_view(), name='nhn_cloud_credentials'),
|
|
path('nhn-cloud/password/', NHNCloudPasswordView.as_view(), name='nhn_cloud_password'),
|
|
]
|