Regard token to be invalid only when remote throws ForbiddenOperationException
This commit is contained in:
@@ -84,8 +84,11 @@ public class YggdrasilService {
|
||||
requireEmpty(request(provider.getValidationURL(), createRequestWithCredentials(accessToken, clientToken)));
|
||||
return true;
|
||||
} catch (RemoteAuthenticationException e) {
|
||||
if ("ForbiddenOperationException".equals(e.getRemoteName())) {
|
||||
return false;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public void invalidate(String accessToken) throws AuthenticationException {
|
||||
|
||||
Reference in New Issue
Block a user