From 3f308b42857313749486a738fac37559043fe6b9 Mon Sep 17 00:00:00 2001 From: ananjaykumar2 Date: Wed, 13 Nov 2024 17:02:48 +0530 Subject: [PATCH] hanlde invlid role for connector apis --- .../rs/proxy/authenticator/JwtAuthenticationServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/iudx/rs/proxy/authenticator/JwtAuthenticationServiceImpl.java b/src/main/java/iudx/rs/proxy/authenticator/JwtAuthenticationServiceImpl.java index dacd4dd..9400a72 100644 --- a/src/main/java/iudx/rs/proxy/authenticator/JwtAuthenticationServiceImpl.java +++ b/src/main/java/iudx/rs/proxy/authenticator/JwtAuthenticationServiceImpl.java @@ -219,6 +219,8 @@ Future validateProviderUser(String providerUserId, JwtData jwtData) { LOGGER.error("fail"); promise.fail("incorrect providerUserId"); } + } else { + promise.fail("Invalid role found"); } } catch (Exception e) { LOGGER.error("exception occurred while validating provider user : " + e.getMessage());