Gracefully handling failover between independent providers #1238
Unanswered
nabertrand
asked this question in
Q&A
Replies: 1 comment
-
no it is not possible to restart authentication on a code exchange error: in most cases it would lead to infinite loops; you'll need to cater for proper failover in Keycloak itself, possibly by issuing a stateless code parameter value (not sure if that is possible at all) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to set up two independent Keycloak instances with identical configurations that can act as a failover pair without going through the work of configuring shared sessions between the instances. During my initial testing, failing over causes the client to receive the message
Error: OpenID Connect Provider error: Error in handling response type.
Looking at the logs, it appears that mod_auth_openidc attempts to reach out to the now-primary instance with a code that is only valid on the previous instance and gets a400 / invalid_grant
response as shown below. Is there a way to configure mod_auth_openidc to go through authentication again on receiving a 400 error? Or perhaps there is some other configuration change I need to make?Thanks,
Nick
Beta Was this translation helpful? Give feedback.
All reactions