fedora-infra / flask-oidc

OpenID Connect support for Flask
24 stars 14 forks source link

You are already logged in error #84

Closed archerne closed 3 months ago

archerne commented 3 months ago

Keycloak in 25.0 made a change Change Keycloak now does not display the message You are already logged in to the end user when an authentication session expires and user is already logged-in. Instead it redirects the error about the expired authentication session to the client application, so the client can act on it and restart authentication This new error gets thrown from the authorize_view function. However, since that function is invoked through a declaration @oidc.require_login there is no way to catch the error and restart the authentication.

If the authorize_view cloud instead restart the authentication look when the error is received that would be good. image

archerne commented 3 months ago

Looks like Keycloak 25.0.1 fixed this issue Link