feat(auth): implement OIDC JWT verification with dynamic identity provider support

- Added JwtService (azure-jwt.service.ts) to verify tokens from multiple IdPs (Microsoft Entra ID, Amazon Cognito)
- Implemented dynamic provider configuration (issuer, audience, jwksUri)
- Added JwtAuthGuard for NestJS to handle JWT validation via jose library
- Integrated @Public() and @IdP() decorators for route-level control
- Audience () and issuer () validation logic aligned with OIDC standards
- Added clock tolerance and allowed algorithm checks for security hardening
This commit is contained in:
dahyeon committed 2025-11-08 03:33:36 +00:00
1 parent 02255d7240
commit d6b9477094
14 files changed
+346 -47

No files matched your search

+1
View File
@@ -26,6 +26,7 @@
"@nestjs/core": "^11.0.1",
"@nestjs/platform-express": "^11.0.1",
"@nestjs/swagger": "^11.2.1",
"jose": "^6.1.0",
"mongoose": "^8.19.3",
"nats": "^2.29.3",
"reflect-metadata": "^0.2.2",