You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logoutUrl function on the Keycloak prototype takes to parameters. The first one redirectUrl is required, whilst the idTokenHint is an optional parameter (per the TS types).
However – if the idTokenHint is not provided, the redirectUrl is not included, because of this check 👇
When calling the logoutUrl method from the Keycloak prototype, passing a redirectUrl I expect the redirectUrl to be included in the logoutUrl returned. Regardless of whether or not the idTokenHint is provided.
Actual behavior
If no idTokenHint is passed to the Keycloak.prototype.logoutUrl method the redirectUrl is not appended either. It's either idTokenHint+redirectUrl or nothing at all.
How to Reproduce?
constkc=newKeycloak(...)// this one will include the redirectUrlkc.logoutUrl('https://where.to.go','id123')// this one won't include the redirectUrl, because of the missing id token hintkc.logoutUrl('https://where.to.go')
Anything else?
No response
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: