Okta SignOut takes to callbak with token and application stops with no error

Hi,

Tried to logout from my project with angular 14, but it takes me to below url:

https://domain.com.cloudfront.net/callback?code=token/callbak

Surprisingly it does not through any error. Even i try to access directly access any route, it return back to same callbak url.

Any guidance?

import:
import { OKTA_AUTH } from ‘@okta/okta-angular’;
import { OktaAuth } from ‘@okta/okta-auth-js’;

constructor:

constructor(@Inject(OKTA_AUTH) public oktaAuth: OktaAuth) { }

Signout code:

Tried 1:

async logout(){
    await this.oktaAuth.signOut({postLogoutRedirectUri: `${window.location.origin}/logout/callback`});
  }

Tried 2:

async logout(){
    await this.oktaAuth.signOut();
  }

Tried 3:

async logout(){
    await this.oktaAuth.signOut({postLogoutRedirectUri: '/logout'});
  }

But same result. Actually no component is loading, or we can say not redirecting to logout component.

Thanks
Gautam

1 Like

Hi, any update on this?
I am having same issue, application stuck at logout call back url with no error

No update till date, hope developer will reply some day.

alisaduncan

Need your help on this, if you can :slight_smile:

No… it is still has same issue, now login is throwing error with below url:

https://blablabla.cloudfront.net/callback?code=someRandomToken

I have registered url on okta, angular version 9 is working, but anguale version 14 is not working.

https://blablabla.cloudfront.net/callback/
https://blablabla.cloudfront.net/logged-out/

I am really worried, what should i do?

Please, anyone help me… :weary: :weary: