Skip to content

Commit

Permalink
Debug AgentConnect 🔒
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlaine committed Jan 25, 2024
1 parent 37e0b74 commit 9476881
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/auth/login.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import { AuthGuard } from '@nestjs/passport';
@Injectable()
export class LoginGuard extends AuthGuard('oidc') {
async canActivate(context: ExecutionContext) {
console.log('plep 1');
const result = (await super.canActivate(context)) as boolean;
console.log('plep 1', context);
try {
const result = (await super.canActivate(context)) as boolean;
} catch (e) {
console.log(e);
}
console.log('plep 2');
const request = context.switchToHttp().getRequest();
console.log('plep 3');
Expand Down
1 change: 0 additions & 1 deletion src/auth/oidc.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class OidcStrategy extends PassportStrategy(Strategy, 'oidc') {
passReqToCallback: true,
usePKCE: false,
});
console.log('plep', client);

this.client = client;
}
Expand Down

0 comments on commit 9476881

Please sign in to comment.