Search Results :

×

When an organization rolls out Single Sign-On across multiple applications, logging in becomes effortless — one set of credentials, one authentication flow, access everywhere. But logout is often overlooked, and that gap becomes a real security concern. A user who signs out of one application may still have active, authenticated sessions running in five other connected apps, simply because those apps never found out the user logged out.

This use case shows how the miniOrange OAuth Server uses Backchannel Logout to solve that gap — automatically notifying registered client applications when a user's session is terminated. The client applications can then invalidate the corresponding local sessions without requiring the user to manually log out from each application.

By using server-to-server communication, Backchannel Logout provides a controlled approach to managing logout across applications connected to an OAuth 2.0 or OpenID Connect-based authentication system.

  • The OAuth Server SSO module is installed and configured.
  • Client applications are registered with the OAuth Server.
  • The required OAuth 2.0 or OpenID Connect authentication flow is configured.
  • Back-channel logout is configured for the required client applications.

In a typical Single Sign-On setup, a user authenticates once with the OAuth Server and gains access to several connected applications.

For example, an organization may have:

  • Employee support
  • Customer support
  • Internal portal
  • Document Repository
  • Partner-facing applications

Traditional, browser-based ("front-channel") logout relies on the user's browser to visit each application's logout endpoint in sequence, usually inside hidden iframes.

This front-channel approach breaks down in increasingly common situations: mobile apps that don't share browser state, applications running in a different browser or device, iframe-blocking browser policies, or a session that needs to be terminated administratively rather than by the user clicking "logout" at all — for example, when an admin revokes access after an employee offboarding.

In each of these cases, the application never receives the logout signal, and its session for that user quietly remains active — a real exposure, especially for security-conscious industries like finance, healthcare, and government.

To solve this, the miniOrange OAuth Server supports OIDC Backchannel Logout, which removes the browser from the equation entirely. When a session ends at the OAuth Server — whether through user-initiated logout, session expiry, or administrative revocation — the server directly calls each relying party's registered backchannel logout endpoint with a signed logout token, ensuring every application is notified reliably, regardless of device, browser, or how the logout was triggered.

The OAuth Server is configured as the central authentication and session management service for the connected applications.

Each client application is configured with the required Backchannel Logout endpoint. This endpoint allows the OAuth Server to communicate logout events directly to the application.

The admin can configure Backchannel Logout for the required OAuth/OIDC clients and establish how logout notifications should be handled.

When a user logs out, the following process takes place:

  • The user authenticates through the OAuth Server and accesses one or more registered client applications.
  • Each client application maintains the user's local application session.
  • The user initiates logout.
  • The OAuth Server terminates the relevant authentication session.
  • The OAuth Server generates a Backchannel Logout notification.
  • The notification is sent directly to the configured client applications.
  • Each client application validates the logout notification.
  • The application identifies the corresponding user session.
  • The application terminates the local session.
  • The user is logged out from the connected applications.

Login Flow

Drupal OAuth Server - Backchannel Logout Login Flow
  • Once Backchannel Logout is configured, users do not need to manually sign out from every application connected to the OAuth Server.
  • For example, an employee may be logged into multiple enterprise applications: Employee Portal, CRM, Project Management, and Admin Dashboard.
  • When the user logs out from the centralized authentication session, the OAuth Server sends logout notifications to the configured applications.
  • Each application processes the notification and terminates the user's local session.
  • From the user's perspective, the logout process becomes centralized and consistent across the connected applications.
  • Centralize logout management across applications connected to the OAuth Server.
  • Terminate local application sessions when the corresponding centralized session is logged out.
  • Reduce dependency on browser-based logout flows through direct server-to-server communication.
  • Improve session consistency across multiple OAuth and OpenID Connect client applications.
  • Support distributed application architectures where each application maintains its own local session.
  • Simplify the user logout experience by coordinating session termination across connected applications.

We'll Reach Out to You at the Earliest

mo-form

 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

Table of Contents

Hello there!

Need Help? We are right here!

support