Skip to content

feat(auth): Let refreshed SSO identities skip the session limit - #132304

Draft
cleptric wants to merge 1 commit into
feat/sso-session-duration-settingfrom
feat/sso-session-no-limit-with-refresh
Draft

cleptric wants to merge 1 commit into
feat/sso-session-duration-settingfrom
feat/sso-session-no-limit-with-refresh

Conversation

@cleptric

Copy link
Copy Markdown
Member

Builds on #132303. Merge after #132300.

check_auth refreshes the identities of providers with requires_refresh (Google, GitHub, Fly) about once a day, and a member loses access when the provider rejects the refresh. Making those members sign in again on a timer adds little.

With auth.sso-session.no-limit-with-refresh on, the SSO sessions of such providers have no limit unless the organization sets one. A session then ends when the refresh is rejected, or when no refresh has verified the identity for a week. SAML providers keep the limit, since there is nothing to refresh. The settings page shows the default as "no limit" for these providers.

The option is off by default, so nothing changes until it is turned on. Superuser and staff checks keep using SSO_EXPIRY_TIME.

Refs #43182
Refs ENG-6427

🤖 Generated with Claude Code

check_auth refreshes the identities of providers with requires_refresh,
like Google, about once a day, and a member loses access when the
provider rejects the refresh. Making those members sign in again on a
timer adds little.

With the auth.sso-session.no-limit-with-refresh option on, the SSO
sessions of such providers have no limit unless the organization sets
one. A session then ends when the refresh is rejected, or when no
refresh has verified the identity for a week. SAML providers keep the
limit, since there is nothing to refresh.

The option is off by default.

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