IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 840 forks source link

Need to implement Single Sign Out #1318

Closed Sonik20 closed 3 years ago

Sonik20 commented 3 years ago

Hey @brockallen ,

Here is my scenario, we are using Vue 3 + Auth0 (PKCE Flow) for authentication.

We have 3 applications which will have single sign on and its currently in place, but we have a situation where 3 apps will be opened in separate tabs and if user logs out from one app, he/she should be logged out from other applications as well.

We are trying to get events like SignOut, but we are not getting that event in other applications which are opened in other tabs.

Thanks, Sonik.

brockallen commented 3 years ago

Last I checked Auth0 does not support the OIDC specs for sign out.

Sonik20 commented 3 years ago

I am not into Auth0 but this link says it does support single sign out https://auth0.com/docs/logout/log-users-out-of-applications.

brockallen commented 3 years ago

It might support some home-grown signout, but it needs to support the OIDC specs for signout to work with this library: https://openid.net/connect/

Sonik20 commented 3 years ago

I am not able to connect the world of auth0 and library, this might sound stupid because I am more of a front-end guy. Can you guide me to achieve this?

brockallen commented 3 years ago

Sorry, you should ask the vendor for help connecting to their product.