Files
CyberPanel/loginSystem/webauthn_urls.py
master3395 4be0bfd5aa 2FA/WebAuthn, user management, deploy and fix scripts
- loginSystem: WebAuthn (webauthn backend, models, urls, views), login template and webauthn.js
- baseTemplate: index.html updates
- docs: 2FA_AUTHENTICATION_GUIDE.md
- userManagment: createUser/modifyUser templates, userManagment.js, views, tests; check_modify_users_page.py
- requirments.txt: add webauthn>=2.0.0
- deploy-templates.sh: deploy templates/static to live CyberCP
- fix-cyberpanel-500.sh: script for common HTTP 500 login fixes (MariaDB, configservercsf, cache, restart)
2026-03-07 02:46:15 +01:00

27 lines
1.4 KiB
Python

# -*- coding: utf-8 -*-
from django.urls import path
from . import webauthn_views
urlpatterns = [
# WebAuthn Registration
path('registration/start/', webauthn_views.webauthn_registration_start, name='webauthn_registration_start'),
path('registration/complete/', webauthn_views.webauthn_registration_complete, name='webauthn_registration_complete'),
# WebAuthn Authentication
path('authentication/options/', webauthn_views.webauthn_authentication_options, name='webauthn_authentication_options'),
path('authentication/start/', webauthn_views.webauthn_authentication_start, name='webauthn_authentication_start'),
path('authentication/complete/', webauthn_views.webauthn_authentication_complete, name='webauthn_authentication_complete'),
# WebAuthn Credential Management
path('credentials/<str:username>/', webauthn_views.webauthn_credentials_list, name='webauthn_credentials_list'),
path('credential/delete/', webauthn_views.webauthn_credential_delete, name='webauthn_credential_delete'),
path('credential/update/', webauthn_views.webauthn_credential_update, name='webauthn_credential_update'),
# WebAuthn Settings
path('settings/update/', webauthn_views.webauthn_settings_update, name='webauthn_settings_update'),
# WebAuthn Maintenance
path('cleanup/', webauthn_views.webauthn_cleanup, name='webauthn_cleanup'),
]