Skip to content

Commit

Permalink
Fix unit test case failures
Browse files Browse the repository at this point in the history
Signed-off-by: Aozixuan Priscilla Guan <[email protected]>
  • Loading branch information
aoguan1990 committed Jun 21, 2022
1 parent 9394ed9 commit fa571ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/auth/types/openid/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export class OpenIdAuthRoutes {
});
} catch (error) {
context.security_plugin.logger.error(`OpenId authentication failed: ${error}`);
if(error.toString().toLowerCase().includes("authentication exception")){
if (error.toString().toLowerCase().includes('authentication exception')) {
return response.unauthorized();
}else{
} else {
return this.redirectToLogin(request, response);
}
}
Expand Down

0 comments on commit fa571ea

Please sign in to comment.