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

keycloak logout-success-url #4271

Open
4 tasks done
AlexeyGA opened this issue Oct 3, 2023 · 2 comments
Open
4 tasks done

keycloak logout-success-url #4271

AlexeyGA opened this issue Oct 3, 2023 · 2 comments
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working

Comments

@AlexeyGA
Copy link

AlexeyGA commented Oct 3, 2023

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Keycloak v17 is used for OAuth2 and KafkaUI 0.7.1.
When clicking on logout, there is no redirection from the Keycloak endpoint back to KafkaUI. I suspect that the redirect_url parameter is missing in the URL. In the Spring Framework, the logout-success-url configuration parameter is used for these purposes, but any attempts to enter it through env have been unsuccessful. Am I doing something wrong, or is such redirection not provided after logout?

Expected behavior

When you click on logout, logout occurs and returns to the kafka-ui home page.

Your installation details

Authorization parameters:
AUTH_TYPE: OAUTH2
AUTH_OAUTH2_CLIENT_KEYCLOAK_PROVIDER: keycloak
AUTH_OAUTH2_CLIENT_KEYCLOAK_ISSUER_URI: <ISSUER_URI>
AUTH_OAUTH2_CLIENT_KEYCLOAK_REDIRECT_URL: https://<domain.com>/kafka-ui
AUTH_OAUTH2_CLIENT_KEYCLOAK_USER_NAME_ATTRIBUTE: preferred_username
AUTH_OAUTH2_CLIENT_KEYCLOAK_SCOPE: openid
AUTH_OAUTH2_CLIENT_KEYCLOAK_CUSTOM-PARAMS_TYPE: keycloak
AUTH_OAUTH2_CLIENT_KEYCLOAK_CLIENTID:
AUTH_OAUTH2_CLIENT_KEYCLOAK_CLIENTSECRET:

There were also many options to add LOGOUT_SUCCESS_URL directly or through CUSTOM-PARAMS

Steps to reproduce

  1. install kafka-ui with the current specified parameters
  2. log in using oauth2 via keycloak
  3. Click on logout and confirm in the window that opens
    Remains on the keycloak endpoint and does not go back

Screenshots

No response

Logs

No response

Additional context

No response

@AlexeyGA AlexeyGA added status/triage Issues pending maintainers triage type/bug Something isn't working labels Oct 3, 2023
@devlifealways
Copy link

We have the same issue, indeed it would lovely to have this feature

@Haarolean
Copy link
Contributor

logout success url is an URL within the app to get the user redirected to, which defaults to /login?logout in this case.
The thing you're looking for is called a post-logout url, and it has to be set up on the Keycloak's side, there's a param called post_logout_redirect_uri.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants