- IAMUser model: login_password_hash + login_enabled fields - Custom JWT auth for sub-accounts (role: iam_user) - Login/me/my-keys/reveal endpoints for sub-accounts - Admin can set login password via set-login endpoint - Sub-accounts can only see their own API Keys Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
719 B
Python
20 lines
719 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('login/', views.login_view),
|
|
path('refresh/', views.refresh_view),
|
|
path('me/', views.me_view),
|
|
path('change-password/', views.change_password_view),
|
|
path('admins/', views.admin_list_view),
|
|
path('admins/create/', views.admin_create_view),
|
|
path('admins/<int:pk>/toggle/', views.admin_toggle_view),
|
|
path('admins/<int:pk>/reset-password/', views.admin_reset_password_view),
|
|
|
|
# Sub-account (IAM user) login
|
|
path('iam/login/', views.iam_login_view),
|
|
path('iam/me/', views.iam_me_view),
|
|
path('iam/my-keys/', views.iam_my_keys_view),
|
|
path('iam/my-keys/<int:pk>/reveal/', views.iam_my_key_reveal_view),
|
|
]
|