Skip to content

redirectUriAsPostLogoutRedirectUriFallback has no effect when there is no id_token #1238

@buchatsky

Description

@buchatsky

Describe the bug
When postLogoutRedirectUri is not set and AuthConfig.redirectUriAsPostLogoutRedirectUriFallback = true and Identity Server does not return id_token, logOut() does not go to AuthConfig.logoutUrl.

Expected behavior
logOut() to go to AuthConfig.logoutUrl.

Library version
13.0.1

Additional context
Library source code:

logOut(customParameters = {}, state = '') {
...
if (!id_token && !this.postLogoutRedirectUri) {
  return; // exits HERE
}
...
const postLogoutUrl = this.postLogoutRedirectUri ||
  (this.redirectUriAsPostLogoutRedirectUriFallback && this.redirectUri) ||   // is NOT reached
  '';
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor tagging faulty or unexpected behavior.investigation-neededIndication that the maintainer or involved community members may need to investigate more.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions