Oidc-client-js: Can't get signoutPopup to work

Created on 20 Feb 2017  路  8Comments  路  Source: IdentityModel/oidc-client-js

I'm using v1.2.2 (and I've also tried with 1.3.0-beta.3).

signinPopup({..}) works great.

However, when I try and run signoutPopup() the promise is never resolved. I believe this is due to #254 ?

Brief review of the code sees signoutPopup uses a similar mechanism to signinPopup yet the latter doesn't have a unique return url, nor an associated callback.

bug

Most helpful comment

Ok, I'll see if I can spend some time to track this down.

All 8 comments

Ah, sorry -- signout (I originally misread it as signin). I'll look into the other issue when I can.

No probs! I tried to add a similar callback for signout, but couldn't get it to work. It's never that simple 馃槢!

BTW, 1.3.0-beta3, everything is defined in the global(?) namespace instead of under Oidc., not sure if this is by design?

1.3.0-beta3, everything is defined in the global(?) namespace instead of under Oidc., not sure if this is by design?

Hmm, well, depends how you pull in the library. But the ~/dist version is still supposed to be under Oidc.

Ah yes, rightly so, my mistake!

I came across the same problem. The user unloaded normally but the popup windows didn't dismiss after calling signoutRedirectCallback(). In the meantime, I can only add a catch method after calling Usermanager.signoutPopup(), and window.close() the callback window after calling signoutRedirectCallback(),

Ok, I'll see if I can spend some time to track this down.

This is a dup of #254 so I'll close this one. Thanks for bring this to my attention!

Was this page helpful?
0 / 5 - 0 ratings