I have notice, that if I call the redirectForLogout() after the token is expired, the oidc-token-manager redirects to the logout page of the idsrv, but does not redirects back to the given post_logout_redirect_uri.
I found in the oidc-token-manager.js on the line 8066 following instruction:
I don't understand, why the post_logout_redirect_uri will not be included to the URL, if the id_token_hint is empty? What do you think of the following proposal:
if (settings.post_logout_redirect_uri) {
url += "?post_logout_redirect_uri=" + encodeURIComponent(settings.post_logout_redirect_uri);
}
if (id_token_hint)
{
url += "&id_token_hint=" + encodeURIComponent(id_token_hint);
}
I have notice, that if I call the
redirectForLogout()
after the token is expired, the oidc-token-manager redirects to the logout page of the idsrv, but does not redirects back to the givenpost_logout_redirect_uri
.I found in the oidc-token-manager.js on the line 8066 following instruction:
I don't understand, why the
post_logout_redirect_uri
will not be included to the URL, if theid_token_hint
is empty? What do you think of the following proposal:Thanks!