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());