- 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
12 lines
196 B
TypeScript
12 lines
196 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
|
|
@Injectable()
|
|
export class AppService {
|
|
// getHello(): string {
|
|
// return 'Hello World!';
|
|
// }
|
|
isHealthy(): string {
|
|
return 'OK';
|
|
}
|
|
}
|