OAuth / OIDC Single Sign On

After I click on the logout in Drupal, it sends me back to the Drupal homepage. However, when I try to login with other user, it doesn’t ask me to login but automatically logs me in with same user

617 views October 3, 2025 0

The functionality you’ve mentioned here is the default behavior of a module. When you try to log in with a new user, it doesn’t prompt you to enter credentials because your session is still active at the Identity Provider (IdP). Logging out from Drupal alone does not end the IdP session, so the same user gets logged back in automatically. For the functionality you are looking for (logging out from both Drupal and the IdP), you need to configure Single Logout (SLO) so that the Drupal logout also clears the IdP session.

Steps to Configure Single Logout :

  • Go to the Client Settings tab of your App Client configuration.

  • Scroll down to the Logout Settings section.

  • Enable the Single Logout checkbox.

  • In the IdP Session Logout Endpoint URL field, add your provider’s logout URL

  • In the Redirect URI Param Name of Identity Provider field, enter the parameter expected by the IdP (it depends on the IdP to IDP)

  • Click Save.
    Note: You will get this logout URL from your Provider/Application support.

If your Provider is Azure AD B2C, then you can find the solution by clicking this link.

Was this helpful?


Hello there!

Need Help? We are right here!

support