meldestelle/infrastructure/auth
StefanMoCoAt f9927066a2 refactor(infra-auth): Relocate auth models and add JWT tests
This commit resolves the build failures caused by the refactoring of the `core` module and significantly improves the quality of the `auth-client` module.

### Architectural Refinements

- **Relocated Auth Enums:** The `RolleE` and `BerechtigungE` enums have been moved from the `core` module to their correct logical home within `:infrastructure:auth:auth-client`. The `auth-client` is now the single source of truth for authorization models, making it a self-contained and more coherent module.
- **Improved Type Safety:** The `AuthenticationService` interface and its DTOs now use the type-safe `BerechtigungE` enum instead of raw `List<String>`, improving consistency and reducing the risk of runtime errors.
- The `JwtService` now uses `kotlin.time.Duration` for token expiration, aligning it with project-wide best practices.

### Testing Enhancements

- **Added JWT Service Tests:** Introduced a comprehensive `JwtServiceTest` suite.
- The tests cover token generation, validation (including successful, invalid secret, and expired token scenarios), and the correct extraction of claims like user ID and permissions.
- This ensures the reliability and security of our core authentication mechanism.
2025-08-09 19:35:53 +02:00
..
auth-client refactor(infra-auth): Relocate auth models and add JWT tests 2025-08-09 19:35:53 +02:00
auth-server feat(build): Refactor infrastructure modules and establish single source of truth 2025-07-31 14:09:22 +02:00
README-INFRA-AUTH.md refactor(infra-auth): Relocate auth models and add JWT tests 2025-08-09 19:35:53 +02:00