feat: update MCP quickstart for On-Behalf-Of Token Exchange#1052
Closed
lrzhou25 wants to merge 4 commits into
Closed
feat: update MCP quickstart for On-Behalf-Of Token Exchange#1052lrzhou25 wants to merge 4 commits into
lrzhou25 wants to merge 4 commits into
Conversation
…n restructuring Migrate internal links across English, French-Canadian (fr-ca), and Japanese (ja-jp) documentation from the old /confidential-and-public-applications/ path structure to the new flattened structure. Updates include: - Move first-party-and-third-party-applications to top-level applications directory - Move user-consent-and-third-party-applications to third-party-applications subdirectory - Move enable-third-party-applications to third-party-applications/configure-third-party-applications - Consolidate view/update application ownership references to first-party applications Files updated: - 55+ documentation files across all three languages - Updated links in markdown content, imports, and cross-references - Preserved anchor links and URL fragments during migration - Updated docs.json with new navigation structure This commit prepares the documentation for the corresponding deletion of old documentation pages under /confidential-and-public-applications/. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…section Add missing pages to French (fr-ca) and Japanese (ja-jp) navigation: - first-party-and-third-party-applications - Third-Party Applications group with all sub-pages - application-access-to-apis-client-grants (fr-ca only) - revoke-api-access This ensures all three language versions have consistent navigation structure. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Create missing translation files to match English navigation structure: French (fr-ca): - first-party-and-third-party-applications.mdx - third-party-applications.mdx + 5 sub-pages - application-access-to-apis-client-grants.mdx - revoke-api-access.mdx Japanese (ja-jp): - first-party-and-third-party-applications.mdx - third-party-applications.mdx + 5 sub-pages - revoke-api-access.mdx Total: 17 new translation files Note: These are copies of English content and will need proper translation by the localization team. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Updates the "Call Your API on a User's Behalf" quickstart to reflect the new On-Behalf-Of (OBO) Token Exchange implementation. JavaScript changes (PR #79): - Update sample folder: fastmcp-mcp-on-behalf-of-tokenexchange-js - Replace Custom Token Exchange with On-Behalf-Of terminology - Simplify environment variables (remove MCP_AUTH0_SUBJECT_TOKEN_TYPE) - Update token exchange: exchangeTokenOnBehalfOf() using getTokenOnBehalfOf() - Simplify MCP_AUTH0_EXCHANGE_SCOPE to "read:private" Python changes (PR #81): - Update sample folder: fastmcp-mcp-on-behalf-of-tokenexchange-python - Replace Custom Token Exchange with On-Behalf-Of terminology - Update token exchange: exchange_token_on_behalf_of() using get_token_on_behalf_of() Additional improvements: - Add rate limit note for Auth0 for AI Agents add-on - Add client grant configuration instructions - Add OBO token exchange enablement component - Update prerequisites with OBO-specific requirements Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
Summary
Errors per inputErrors in main/docs/fr-ca/get-started/applications.mdx
Errors in main/docs/fr-ca/get-started/applications/application-grant-types.mdx
Errors in main/docs/fr-ca/get-started/applications/confidential-and-public-applications.mdx
Errors in main/docs/get-started/applications.mdx
Errors in main/docs/ja-jp/get-started/applications.mdx
Errors in main/docs/ja-jp/get-started/applications/application-grant-types.mdx
Errors in main/docs/ja-jp/get-started/applications/confidential-and-public-applications.mdx
Redirects per inputRedirects in auth4genai/mcp/get-started/call-your-apis-on-users-behalf.mdx
Redirects in main/docs/authenticate/login/oidc-conformant-authentication.mdx
Redirects in main/docs/fr-ca/get-started/applications/application-grant-types.mdx
Redirects in main/docs/fr-ca/get-started/applications/application-settings.mdx
Redirects in main/docs/fr-ca/get-started/applications/first-party-and-third-party-applications.mdx
Redirects in main/docs/fr-ca/libraries/auth0-single-page-app-sdk.mdx
Redirects in main/docs/fr-ca/libraries/auth0js.mdx
Redirects in main/docs/fr-ca/libraries/lock.mdx
Redirects in main/docs/fr-ca/secure/tokens/json-web-tokens/json-web-token-claims.mdx
Redirects in main/docs/fr-ca/secure/tokens/refresh-tokens/multi-resource-refresh-token.mdx
Redirects in main/docs/ja-jp/get-started/applications/application-settings.mdx
Redirects in main/docs/ja-jp/get-started/applications/first-party-and-third-party-applications.mdx
Redirects in main/docs/ja-jp/libraries/auth0-single-page-app-sdk.mdx
Redirects in main/docs/ja-jp/secure/tokens/refresh-tokens/multi-resource-refresh-token.mdx
Redirects in main/docs/libraries/auth0-single-page-app-sdk.mdx
Redirects in main/docs/libraries/auth0js.mdx
|
Contributor
Author
|
Closing this PR - created a clean version without unrelated changes from 3p_redirects branch. See new PR. |
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.
Summary
Updates the "Call Your API on a User's Behalf" MCP quickstart to reflect the new On-Behalf-Of (OBO) Token Exchange implementation, replacing the previous Custom Token Exchange approach.
Changes
JavaScript Updates (based on auth0-samples PR #79)
fastmcp-mcp-customtokenexchange-js→fastmcp-mcp-on-behalf-of-tokenexchange-jsMCP_AUTH0_SUBJECT_TOKEN_TYPEMCP_AUTH0_EXCHANGE_SCOPEfrom"openid offline_access read:private"to"read:private"API_BASE_URLtrailing slashexchangeCustomToken()→exchangeTokenOnBehalfOf()getTokenByExchangeProfile()→getTokenOnBehalfOf()AUTH0_AUDIENCEinstead ofAPI_AUTH0_AUDIENCEsubjectTokenTypeparameterPython Updates (based on auth0-samples PR #81)
fastmcp-mcp-customtokenexchange-python→fastmcp-mcp-on-behalf-of-tokenexchange-pythonexchange_custom_token()→exchange_token_on_behalf_of()get_token_by_exchange_profile()→get_token_on_behalf_of()AUTH0_AUDIENCEinstead ofAPI_AUTH0_AUDIENCEsubject_token_typeparameterAdditional Improvements
Files Changed
mcp/get-started/call-your-apis-on-users-behalf.mdx- Main quickstart pagesnippets/mcp/get-started/call-your-apis/create-env-file.mdx- Environment setupsnippets/mcp/get-started/call-your-apis/exchange-access-token-js.mdx- JavaScript explanationsnippets/mcp/get-started/call-your-apis/exchange-access-token-python.mdx- Python explanationsnippets/mcp/get-started/pre-reqs/enable-obo-token-exchange.mdx- New OBO enablement componentsnippets/mcp/get-started/pre-reqs/prerequisites.mdx- Updated prerequisitesTesting
🤖 Generated with Claude Code