Safeguard
Application Security•

ASVS 5.0 V7.1.3: Document Federated Session Systems

When SSO or another identity provider creates sessions, ASVS V7.1.3 wants every session creating system listed with how lifetimes and logout are coordinated.

Safeguard Security Team
2 min read

ASVS 5.0 V7.1.3 (Level 2) requires you to document every system that creates or manages user sessions in a federated setup, such as an SSO provider and each application behind it, together with the controls that keep their session lifetimes, termination and reauthentication triggers aligned.

Why it matters

With SSO there are at least two sessions: one at the identity provider (IdP) and one at each relying party (RP). If they disagree, a user can log out of the IdP and stay signed in to an app for hours. Nobody can reason about that without a map.

How to implement it

Create a table in your architecture docs:

SystemRoleSession lifetimeLogout behaviorReauth trigger
Corporate IdPIdP8 hoursEnds IdP sessionMax auth age 8h
Billing appRP2 hours idleBack channel logoutIdP max age exceeded
Admin portalRP15 min idleBack channel logoutEvery sign in, step up

Then record the mechanisms: OIDC back channel or front channel logout, the max_age or auth_time check, SAML single logout, and who owns each endpoint. Note any application that keeps its own local session after IdP logout and why.

How to test it

For each row, sign in through the IdP, end the IdP session, and check how long the application keeps working. Compare with the table. Repeat from the other direction by logging out in the application and checking the IdP.

Common mistakes

  • Listing the IdP but forgetting internal apps that mint their own sessions.
  • Assuming logout propagates when single logout is not actually configured.
  • Leaving out third party SaaS that your IdP also fronts.

Quick check

Is this only about big SSO setups?

No. Any case where one system's login produces a session in another, including social login, counts.

Sources

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.