From 7dc57c606f8ee3e951424a565f913e80e7b671f6 Mon Sep 17 00:00:00 2001 From: Greg Akins Date: Thu, 11 Apr 2024 15:23:01 -0400 Subject: [PATCH] MAT-6729: Changing to Okta JWT Verification --- src/auth/auth.guard.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/auth/auth.guard.ts b/src/auth/auth.guard.ts index f6a83d4..cbe5558 100644 --- a/src/auth/auth.guard.ts +++ b/src/auth/auth.guard.ts @@ -14,15 +14,14 @@ export class AuthGuard implements CanActivate { constructor(private jwtService: JwtService) {} async canActivate(context: ExecutionContext): Promise { - const oktaJwtVerifier = new OktaJwtVerifier({ issuer: process.env.ISSUER, clientId: process.env.CLIENT_ID, }); - + const request = context.switchToHttp().getRequest(); const token = this.extractTokenFromHeader(request); - + if (!token) { throw new UnauthorizedException('Token not present'); }