Skip to content

Update from code changes: document OAuth token claims for groups#6684

Open
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/b8d368df
Open

Update from code changes: document OAuth token claims for groups#6684
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/b8d368df

Conversation

@mintlify

@mintlify mintlify Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents a new OAuth 2.0 configuration option that lets customers derive user groups directly from the JWT returned by their token endpoint (via source and groupsClaim), instead of hosting a separate user info endpoint. Adds a new "Derive groups from token claims" section on the authentication setup page with examples for top-level, Auth0-namespaced, and Keycloak-nested claims, and notes the fail-closed behavior when the configured token is missing. Also updates the OAuth 2.0 prerequisites and the Info API URL field description so customers can choose between the two group sources.

Triggered by https://github.com/mintlify/server/pull/6815.

Changes

  • Added Token claims to the OAuth field list with a link to the new section.
  • Added a new Derive groups from token claims section covering source selection (id_token vs access_token), supported claim path formats, value normalization, and fail-closed behavior.
  • Updated OAuth 2.0 prerequisites and the Info API URL description to reflect the new alternative.

Note

Low Risk
Documentation-only changes to authentication setup guides; no application code or runtime behavior in this repo.

Overview
Adds documentation for Token claims, an optional OAuth dashboard field that reads user groups from the JWT in the token response (source + groupsClaim) instead of calling Info API URL.

OAuth prerequisites and the Info API URL description are updated so group-based access can come from token claims or a user-info endpoint. A new Derive groups from token claims section explains behavior (claim paths, array vs string values, skipping the info API for groups) and fail-closed sign-in when the configured token is missing. JSON examples cover access_token/groups and Keycloak realm_access.roles. The same content is mirrored in es, fr, and zh authentication-setup.mdx files.

Reviewed by Cursor Bugbot for commit 959a131. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Jul 21, 2026, 4:36 AM

@mintlify

mintlify Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Jul 21, 2026, 4:36 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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