From b7c553acc139fdf5502afa00fe61fd95d8becb3d Mon Sep 17 00:00:00 2001 From: akastijn Date: Sat, 8 Nov 2025 18:02:34 +0100 Subject: [PATCH] Add `login/:code` route with `AuthGuard` and required authorizations --- frontend/src/app/app.routes.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index b0671a7..9c06d32 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -2,6 +2,14 @@ import {Routes} from '@angular/router'; import {AuthGuard} from './guards/auth.guard'; export const routes: Routes = [ + { + path: 'login/:code', + loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent), + canActivate: [AuthGuard], + data: { + requiredAuthorizations: ['SCOPE_user'] + } + }, { path: '', loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent)