Merge pull request #811 from janakamarasena/bug-fixes-1

Added proper request handling when invalid token is received
revert-70aa11f8
Madhawa Perera 7 years ago committed by GitHub
commit d4b99e1f27

@ -99,6 +99,8 @@ public class AccessTokenGrantHandler extends AbstractAuthorizationGrantHandler {
username = response.getUserName(); username = response.getUserName();
userTenantDomain = MultitenantUtils.getTenantDomain(username); userTenantDomain = MultitenantUtils.getTenantDomain(username);
spTenantDomain = response.getTenantDomain(); spTenantDomain = response.getTenantDomain();
} else if (response != null && !response.isValid()) {
throw new IdentityOAuth2Exception("Authentication failed for the provided access token");
} }
} }

Loading…
Cancel
Save