From 9b0f24ea7d519692c1da0f1c7e3819c127928484 Mon Sep 17 00:00:00 2001 From: ektavarma10 Date: Thu, 9 Nov 2023 19:21:52 +0530 Subject: [PATCH] Remove KeyCloakAuthenticationToken check --- .../atlas/web/security/AtlasAuthenticationProvider.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java b/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java index f2d45d9839..a60a4938d9 100644 --- a/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java +++ b/webapp/src/main/java/org/apache/atlas/web/security/AtlasAuthenticationProvider.java @@ -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); }