Skip to content

docs: add organization context to custom token claims#1433

Open
simeng-li wants to merge 1 commit into
masterfrom
simeng-docs-add-jwt-organization-context
Open

docs: add organization context to custom token claims#1433
simeng-li wants to merge 1 commit into
masterfrom
simeng-docs-add-jwt-organization-context

Conversation

@simeng-li

@simeng-li simeng-li commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Documents the new organization context exposed to the custom JWT / custom token claims script.

In Create a custom access token script, the context section now lists an Organization data object alongside the existing user / grant / user-interaction objects. For organization access tokens, the script receives the target organization via context.organization (id, name, description, customData), so authors can attach per-organization claims — e.g. mapping the Logto organization ID to an internal ID stored in the organization's custom data.

Notes

  • This documents the feature added in feat(core): expose organization context to jwt customizer logto#9069, which is currently behind the isDevFeaturesEnabled flag. Hold/merge this to line up with that feature's release.
  • Both internal links resolve to existing pages (/authorization/organization-template, /organizations/organization-management#organization-data-structure).
  • Translations are left to the docs translation flow.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying logto-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d2e5c5
Status: ✅  Deploy successful!
Preview URL: https://cee1a4c1.logto-docs.pages.dev
Branch Preview URL: https://simeng-docs-add-jwt-organiza.logto-docs.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying logto-docs-tutorials with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d2e5c5
Status: ✅  Deploy successful!
Preview URL: https://0d44dfcd.logto-docs-tutorials.pages.dev
Branch Preview URL: https://simeng-docs-add-jwt-organiza.logto-docs-tutorials.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant