From bb98dc026229fb6300838969e21a0aeb5a32c5fc Mon Sep 17 00:00:00 2001 From: Afiq Date: Sat, 31 May 2025 19:20:38 +0800 Subject: [PATCH] Update Header and Documentation for Authentik Integration - Changed logout link in Header.vue from "/logout" to "/api/auth/logout" to align with the new Authentik API structure. - Enhanced implementation status documentation to reflect the completion of the backend authentication system, including OAuth2 integration, session management, and middleware setup. - Updated the implementation plan to outline the completed authentication foundation and next steps for RBAC database and API development. - Added a new document detailing the authentication implementation, including server API endpoints, middleware, and composable usage for a comprehensive overview of the authentication system. --- components/layouts/Header.vue | 2 +- docs/04_IMPLEMENTATION_STATUS.md | 253 ++++++--- docs/05_BACKEND_IMPLEMENTATION_PLAN.md | 60 +++ ...06_AUTHENTIK_INTEGRATION_IMPLEMENTATION.md | 287 +++++++++- docs/09_AUTHENTICATION_IMPLEMENTATION.md | 491 ++++++++++++++++++ pages/login.vue | 3 +- pages/login/index.vue | 201 ------- pages/logout/index.vue | 28 - pages/register/index.vue | 241 --------- server/api/auth/login.post.js | 93 ---- server/api/auth/logout.get.js | 19 - 11 files changed, 1026 insertions(+), 652 deletions(-) create mode 100644 docs/09_AUTHENTICATION_IMPLEMENTATION.md delete mode 100644 pages/login/index.vue delete mode 100644 pages/logout/index.vue delete mode 100644 pages/register/index.vue delete mode 100644 server/api/auth/login.post.js delete mode 100644 server/api/auth/logout.get.js diff --git a/components/layouts/Header.vue b/components/layouts/Header.vue index 7d4a379..f14a22a 100644 --- a/components/layouts/Header.vue +++ b/components/layouts/Header.vue @@ -279,7 +279,7 @@ const currentLogo = computed(() => {