Skip to content

Commit

Permalink
fix interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcampagnolitg committed Oct 30, 2024
1 parent cba3fec commit 1be70b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/core/auth/auth.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class AuthStrategyFactory {

getStrategy(): AuthStrategy {
return environment.auth === 'google_iap'
? new GoogleIAPStrategy()
? new GoogleIAPStrategy(this.authService)
: new TokenAuthStrategy(this.authService);
}
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/core/auth/guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const AuthGuard: CanActivateFn | CanActivateChildFn = (route, state) => {

// For IAP, we assume the backend will handle authentication
if (environment.auth === 'google_iap') {
// TODO if not authenticated ping the profile endpoint
return of(true);
}

Expand Down

0 comments on commit 1be70b4

Please sign in to comment.