OAuth

Logout endpoint for keycloak ?

42450 views May 22, 2025 47

To ensure the user gets logged out from both the application (Jira/Confluence/Bitbucket/Bamboo) and Keycloak, you need to configure the correct Logout Endpoint URL based on your Keycloak version.


Configuration Steps:

  1. Go to the OAuth/OIDC Configurations tab under your configured provider.
  2. In the Logout Endpoint URL field, enter the appropriate URL based on your Keycloak version:

For Keycloak versions below 18:

http://<domain-name>/auth/realms/<realm-name>/protocol/openid-connect/logout?redirect_uri=<encodedRedirectUri>

For Keycloak version 18 and above:

 http://<domain-name>/realms/<realm-name>/protocol/openid-connect/logout?redirect_uri=<encodedRedirectUri>

After setting this, whenever a user logs out of the application, they will also be logged out from Keycloak automatically.


Note:

  • Replace <domain-name> , <realm-name> , and <encodedRedirectUri> with your actual values.
  • The redirect_uri must be URL-encoded and should point to a page you want the user redirected to after logout.

Was this helpful?


Hello there!

Need Help? We are right here!

support