Open kbrabrand opened 2 years ago
This sounds legit taking into consideration the client_id
query param was added to logout https://github.com/keycloak/keycloak/issues/12002#issuecomment-1128896662
When client_id parameter is used and id_token_hint is NOT used and post_logout_redirect_uri is used ...
Describe the bug
The
logoutUrl
function on the Keycloak prototype takes to parameters. The first oneredirectUrl
is required, whilst theidTokenHint
is an optional parameter (per the TS types).However – if the idTokenHint is not provided, the
redirectUrl
is not included, because of this check 👇Version
15.1.1 (server) - 19.0.1 (keycloak-connect)
Expected behavior
When calling the
logoutUrl
method from the Keycloak prototype, passing aredirectUrl
I expect the redirectUrl to be included in the logoutUrl returned. Regardless of whether or not theidTokenHint
is provided.Actual behavior
If no
idTokenHint
is passed to theKeycloak.prototype.logoutUrl
method theredirectUrl
is not appended either. It's either idTokenHint+redirectUrl or nothing at all.How to Reproduce?
Anything else?
No response