Skip to content

docs: oauth2 sso enforcement - #68

Merged
secana merged 2 commits into
mainfrom
docs/oauth2-sso-enforcement
Sep 23, 2026
Merged

secana merged 2 commits into
mainfrom
docs/oauth2-sso-enforcement

Conversation

@secana

@secana secana commented Sep 23, 2026

Copy link
Copy Markdown
Member

No description provided.

Covers the oauth2.enforced and oauth2.auto_redirect settings added in
kellnr/kellnr#1384, plus the RP-initiated logout that shipped with them.

- Config value cards for both settings, with their TOML keys, environment
  variables and defaults
- A new SSO-Only Login part in the OAuth2/OIDC section listing exactly which
  paths are refused under enforcement, and noting that Cargo API tokens are
  unaffected
- A warning that admin_group_claim and admin_group_value must be configured
  before enabling enforcement on a fresh instance, since the local admin can no
  longer log in and SSO users are otherwise never promoted
- The startup behaviour when enforcement is on and the OIDC handler cannot be
  initialized
- Skipping the login page with auto_redirect, and the requires-chain between
  auto_redirect, enforced and enabled
- Logout via end_session_endpoint, including the post-logout redirect URI that
  has to be registered with the provider
- The two new CLI flags in the arguments table
- Two feature bullets in the OAuth2 overview
Two gaps in the SSO enforcement docs.

The post-logout redirect URI is built from origin.base_url, so a deployment
with origin.path set has to register the prefixed URL with its provider. Only
the bare host was listed.

RP-initiated logout depends on the ID token surviving in a cookie. Browsers cap
a single cookie at roughly 4 KB, so a token carrying many group memberships is
dropped and the provider session is no longer ended, with the local session
still cleared. The page presented provider logout as unconditional whenever
end_session_endpoint is advertised.
@secana
secana merged commit 64e3469 into main Sep 23, 2026
1 check passed
@secana
secana deleted the docs/oauth2-sso-enforcement branch September 23, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant