Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signoutPopup() works as expected but signoutRedirect() doesn't terminate session. #170

Open
sewalsh opened this issue Jun 15, 2020 · 0 comments

Comments

@sewalsh
Copy link

sewalsh commented Jun 15, 2020

  private manager = new UserManager({
    authority: this.configService.authAppURI,
    client_id: 'angular_spa',
    redirect_uri: 'http://localhost:4200/auth-callback',
    post_logout_redirect_uri: 'http://localhost:4200/',
    response_type: 'code',
    scope: 'openid profile email api.read',
    filterProtocolClaims: true,
    loadUserInfo: true,
  });

That's my UserManager object.

If I sign out through the signoutPopup() function, a popup window appears and the user is out the session (and the session in the background window).

async signout() {
    await this.manager.signoutPopup();
  }

If I use signoutRedirect(), it remains logged in.

async signout() {
   await this.manager.signoutRedirect();
  }

In the console, it shows Navigated to http://localhost:5000/connect/endsession?id_token_hint=eyJhbGciOiJS.... when the function is called but the Network inspector doesn't have any record of actually hitting that end-point.

Has anyone had a similar issue to this? Am I doing something trivially stupid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant