akastijn
c536bfbf30
Add debug logs to checkAuthStatus for missing or expired JWT
2025-08-05 23:23:26 +02:00
akastijn
f67cb50f41
Refactor logging in LoginController, simplify auth.service token validation, and remove debug logs from AppealComponent.
2025-08-05 23:22:12 +02:00
akastijn
ae1e972438
Implement appeal form flow with dynamic pages, integrate punishment selection, and add username retrieval logic. Update API schema and enhance auth.service for username handling.
2025-08-05 23:11:38 +02:00
akastijn
c277306c2c
Refactor FormsComponent and add AuthGuard for appeal route protection. Replace dynamic routing with static appeal route, restructure AppealComponent layout, and introduce responsive design adjustments. Update environment configuration for default auth status.
2025-08-03 00:09:27 +02:00
akastijn
1f03a4bdc3
Implement AuthGuard for route protection, integrate authorization checks into particles route, and simplify HeaderComponent access logic. Remove redundant debug logging in auth.service.ts.
2025-08-02 22:27:37 +02:00
akastijn
7f1c59d102
Rename authorizations to authorities in JWT interface and related method in auth.service.ts. Update debug logging accordingly.
2025-08-02 22:11:54 +02:00
akastijn
f968a64dd4
Add debug logging for user claims in auth.service.ts methods.
2025-08-02 22:08:56 +02:00
akastijn
c25364caf7
Add detailed debug logging in hasAccess method for clearer authorization checks.
2025-08-02 22:02:23 +02:00
akastijn
15c3cc7f26
Remove redundant debug logging in auth.service.ts and add logging in hasAccess method for authorization checks.
2025-08-02 21:55:39 +02:00
akastijn
2b96957876
Add debug logging for JWT claims extraction in auth.service.ts.
2025-08-02 21:49:41 +02:00
akastijn
b16fab26e7
Refactor hasAccess method in auth.service.ts to improve readability and optimize authorization checking logic.
2025-07-31 23:30:48 +02:00
akastijn
42f0961f13
Directly initialize JwtHelperService in auth service
2025-07-06 19:14:06 +02:00
akastijn
04310e1cce
Switch to localStorage for JWT handling and simplify case transformation logic in LoginComponent. Update app.config.ts and related services to align with the new token management method. Mark JwtClaims interface as exported.
2025-07-06 19:10:17 +02:00
akastijn
cce83a08de
Replace fakeLogin() with actual login() method in AuthService and remove redundant fakeLogin() implementation.
2025-07-04 23:32:08 +02:00
akastijn
f0faa63ca7
Add JWT support for authentication handling
...
Integrate `@auth0/angular-jwt` for Token management. Update `app.config.ts` with `JwtModule` setup and token getter from cookies. Enhance `AuthService` to include token handling, fake login, and JWT validation using `JwtHelperService`. Introduce `JwtClaims` interface for structured token claims.
2025-07-04 22:31:41 +02:00
akastijn
73916f0aae
Add login button to header
2025-07-04 21:14:45 +02:00
akastijn
ebe66c87c0
Rework folder structure in frontend
...
Pages are now grouped per group they appear in on in the header (where possible)
Utilities used by multiple pages in the project are grouped in folders such as services/pipes/etc
2025-07-04 19:50:21 +02:00
Teriuihi
32a454c034
Refactor permission handling and authentication services
...
Replaced `PermissionClaim` enum with an OpenAPI-defined schema `PermissionClaimDto` for consistency across frontend and backend. Refactored authentication flow to utilize `AuthService` on the frontend, consolidating JWT handling logic. Removed redundant methods like `saveJwt` and integrated robust permission management throughout the application.
2025-06-21 23:15:46 +02:00