Skip to main content

Sessions and Single Sign-On

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

A session records that a user authenticated, so Choreo Identity & Access Management can trust that authentication again later without prompting the user to repeat it. Single Sign-On (SSO) builds on sessions: when a user has a valid session, Choreo Identity & Access Management reuses it and skips the steps the session already covers.

This page explains the session model and how SSO applies to authentication flows. To add SSO to a flow, see Single Sign-On for Flows.

Flow-Centric Sessions​

Choreo Identity & Access Management ties each SSO session to a single flow. The flow is the grouping key: every application that authenticates through the same flow shares that flow's session, and two different flows never share a session.

Because the flow is the grouping key, you can group sessions by the security category of the applications. Assign applications that share a security category to the same flow so they reuse one authentication. Put applications in a more sensitive category on a separate flow, so a session established for a lower-category application never signs the user in to a higher-category one.

Checkpoints​

A checkpoint is the authentication that SSO can skip and reuse. You define it with a pair of nodes: a Check SSO Session node marks where the reusable authentication begins, and a Save / Load Session node marks where it ends. The checkpoint covers the authentication steps between them.

On a fresh sign-in, the flow runs those steps and saves the checkpoint under the session. On a later sign-in, the flow reuses the checkpoint and skips the steps it covers. If the checkpoint has expired, the user completes the steps again.

Session Lifetime​

Two independent timeouts bound every session:

TimeoutBehaviorDefault
IdleMoves forward on each use of the session, at most once per activity-refresh interval (60 seconds by default), so an active session stays alive. A sign-in that reuses the session and a token refresh for a grant issued under it both count as use. The session expires after this much inactivity.2 hours
AbsoluteFixed when the session is created and never extended. The session expires this long after creation regardless of activity.8 hours

A session expires when it passes either deadline. After expiry, the next sign-in through the flow authenticates the user again. Both timeouts are fixed on hosted tenants. See Session Lifetime. A token refresh keeps the session alive only if it arrives before the idle deadline, so an application that refreshes when its access token expires needs an idle timeout longer than the access token validity period. See Configure Session Lifetime.

Session Reference​

Choreo Identity & Access Management references each session with an opaque handle that carries no user data. A browser holds the handle in a per-flow cookie, so SSO reuse happens within that browser: a user who authenticates in one browser does not gain a session in another. An application that runs flows itself through the Flow Execution API receives the handle in the response body and sends it back on later requests. See App-Native Sign-In.

Ending a Session​

Signing a user out of an application does not, on its own, end their Choreo Identity & Access Management session. Because SSO reuses the session, the next sign-in would find it still valid and skip authentication. To sign the user out fully, terminate the session at Choreo Identity & Access Management as well.

A session is terminated by running the application's sign-out flow, which ends the session and clears its per-flow cookie. Terminating a session is idempotent: ending an already-ended or expired session is not an error.

Every application resolves a sign-out flow from the first of three sources that is set: the flow pinned on the application, the default on its organization unit, or the server-level default. Choreo Identity & Access Management ships a server-level default, so an application that pins nothing still signs users out. See Build a Sign-Out Flow.

There are two ways to run the sign-out flow, matching the two integration models:

  • Redirect-based (OIDC). A browser-based application redirects the user to the end_session_endpoint, which runs the sign-out flow and returns the browser to the application. See RP-Initiated Logout.
  • App-native. An application that drives flows directly runs the sign-out flow through the Flow Execution API, sending the session it holds in sessionData. Without it, the sign-out ends nothing. See App-Native Sign-In and Build a Sign-Out Flow.

A session also ends on its own when it passes the idle or absolute timeout, as described above.

When a session ends, through either path or through an administrative action such as deleting the user, Choreo Identity & Access Management posts a logout token to every application that took part in the session and registered a back-channel logout URI. Expiry sends no notification. See Back-Channel Logout.

Was this page helpful?