Skip to content

Option to sign out from external identity provider on user log out #18665

@dmit4git

Description

@dmit4git

Is your feature request related to a problem?

Consider following Orchard config:

  • Orchard is setup as OpenID client (Configureation -> Feature -> OpenID Connect Client Integration)
  • Login settings (Security -> Settings -> User Login) have
    • Disable local password login: on
    • Use external provider for login: on

Now user can't log out of Orchard because when they do - Orchard goes to login page which automatically logs the user back in because IdP session is not terminated.

In scenario when "Use external provider for login" is off there is also room for issues on user's side. User may be not aware that there is a difference between IdP log-in and Orchard log-in, they may expect that logging out of Orchard would prevent someone else from logging back in on their browser. Since user is still signed into IdP, all it takes is to click Login With External Provider.

Describe the solution you'd like

It would be safer and more convenient to have an option for automatically signing user out of IdP on logout.

Add a new checkbox setting to OpenID client settings (Security -> OpenID Connect -> Authentication Client). When the setting is on, user would automatically get signed out of IdP on logging off from Orchard.

Describe alternatives you've considered

It would be nice to have an event that gets triggered when user logs out, it could be utilized to sign the user out from IdP by code. There is LoggedInAsync event, but it looks like there is no log out event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions