Skip to content

Commit

Permalink
MAT-6729: Changing to Okta JWT Verification
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-akins committed Apr 11, 2024
1 parent 47b4ac5 commit 7dc57c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/auth/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ export class AuthGuard implements CanActivate {
constructor(private jwtService: JwtService) {}

async canActivate(context: ExecutionContext): Promise<boolean> {

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');
}
Expand Down

0 comments on commit 7dc57c6

Please sign in to comment.