jacekkow / keycloak-protocol-cas

CAS protocol provider for Keycloak
https://issues.jboss.org/browse/KEYCLOAK-1047
Apache License 2.0
96 stars 30 forks source link

Redirect user for logout if no active session #77

Closed ValentinLorand closed 1 year ago

ValentinLorand commented 1 year ago

Hello,

I'm using the cas-protocol extension with keycloak both in version 21.0.2.

I am experiencing a problem when I try to logout with no active session. (When I am already logout from another application for example)

A keycloak error page is returned in this case. This is not optimal for the user experience. I would like to be redirect to another page in this case.

I made a fix to manage the case of no session with an available redirectUrl. I think this could make Keycloak more robust, especially in terms of its integration with external services that don't always check that a user is logged in before logging them out

Best regards, Valentin

jacekkow commented 1 year ago

I will try to merge it into the next release.