Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a configuration option to redirect to after logout #480

Open
RKrahl opened this issue Jun 24, 2021 · 0 comments
Open

Add a configuration option to redirect to after logout #480

RKrahl opened this issue Jun 24, 2021 · 0 comments

Comments

@RKrahl
Copy link
Member

RKrahl commented Jun 24, 2021

As far as I understand the procedure (correct me if I'm wrong), TopCAT does the following on logout:

  1. Get the ICAT sessionId from browser session storage
  2. Logout from ICAT
  3. Delete the session from browser session storage
  4. Redirect to the TopCAT login page

If the login was done using an external identity provider such as Keycloak, we need to terminate the session there as well. This could easily be done if we could configure the URL that TopCAT redirects to in the last step.

E.g. the default is the TopCAT login page that is something like https://topcat.example.org/. In my use case, I want to manage the OpenID Connect session in an Apache reverse proxy in front of TopCAT using mod_auth_openidc, I would need a redirect to something like https://topcat.example.org/auth/redirect_uri?logout=https%3A%2F%2Ftopcat.example.org%2F [edit: the parameter needs to URL encoded of course]. That would, after terminating the session in mod_auth_openidc, eventually redirect once again to the TopCAT login page.

Therefore, I'd like to ask to add a configuration option for the URL to redirect to on logout. It would need to be a static URL that may include a parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant