docs: oauth2 sso enforcement - #68
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.