Skip to content

Commit

Permalink
Remove KeyCloakAuthenticationToken check
Browse files Browse the repository at this point in the history
  • Loading branch information
ektavarma10 committed Nov 9, 2023
1 parent 6195d90 commit 9b0f24e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ public Authentication authenticate(Authentication authentication)
try {
authentication = atlasKeycloakAuthenticationProvider.authenticate(authentication);
} catch (KeycloakAuthenticationException ex) {
if(authentication instanceof KeycloakAuthenticationToken) {
throw new AtlasAuthenticationException("Authentication failed.");
} else {
LOG.error("Error while Introspecting Token for Keycloak Authentication", ex);
}
throw new AtlasAuthenticationException("Authentication failed.");
} catch (Exception ex) {
LOG.error("Error while Keycloak authentication", ex);
}
Expand Down

0 comments on commit 9b0f24e

Please sign in to comment.