Skip to content

feat(auth): Add a session duration setting to SSO settings - #132303

Draft
cleptric wants to merge 1 commit into
feat/sso-session-duration-enforcementfrom
feat/sso-session-duration-setting
Draft

cleptric wants to merge 1 commit into
feat/sso-session-duration-enforcementfrom
feat/sso-session-duration-setting

Conversation

@cleptric

Copy link
Copy Markdown
Member

Builds on #132302.

Members of organizations with SSO have to sign in with their provider again every 7 days. This lets an organization choose how long that takes.

The SSO settings page gets a "Session Duration" field with Default, 1, 2, 7 and 14 days, behind organizations:sso-session-duration. It saves the choice as the auth provider's sso_session_duration and records it in the audit log. A change applies to SSO sessions that already exist.

14 days is the longest choice because the login session ends after SESSION_COOKIE_AGE. A duration that isn't one of the choices, set some other way, keeps its own choice so that saving the form doesn't replace it.

Refs #43182
Refs ENG-6427

🤖 Generated with Claude Code

Members of organizations with SSO have to sign in with their provider
again every 7 days. Let organizations choose how long that takes.

Add a "Session Duration" field to the SSO settings page, behind the
organizations:sso-session-duration flag. It offers the default and 1,
2, 7 or 14 days, saves the choice as the auth provider's
sso_session_duration, and records it in the audit log. 14 days is the
longest choice because the login session ends after SESSION_COOKIE_AGE.

A change applies to SSO sessions that already exist.

Refs #43182
Refs ENG-6427

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

ENG-6427

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant