Example how to to authenticate user against two independent authentication providers async AsyncRestTemplate, but you only care if one if the providers authenticate the user.
first authentication provider
second authentication provider
content that is accessible if at least one of the providers authenticate user
username | first provider | second provider | access to content |
---|---|---|---|
200_200 | 200 | 200 | true |
200_401 | OK | 401 | true |
401_200 | 401 | 200 | true |
401_401 | 401 | 401 | false |
NONE_200 | TIMEOUT | 200 | true |
200_NONE | 200 | TIMEOUT | true |
NONE_NONE | TIMEOUT | TIMEOUT | false |