

























OAuth Applications now integrate with Clerk Organizations. When your instance has Organizations enabled, users going through the OAuth flow can select which organization they're acting on behalf of, and the OAuth client receives that selection as an org_id claim on the access token.

We've added a new user:org:read scope to OAuth Applications. When a client requests this scope and the user grants it, the OAuth consent screen displays an organization selector. After consent, the access token issued to the client includes an org_id claim populated with the selected organization.
If the consent screen is disabled for your OAuth Application, org_id is populated with the user's last active organization instead.
For convenience, the userinfo endpoint also returns org_name and org_slug alongside org_id, so clients can display organization context without an extra lookup.
Updating an existing OAuth Application is as simple as enabling the new user:org:read scope in its settings on the Clerk Dashboard.
No other changes are required — once the scope is available, clients can request it on their next authorization request.
To learn more, see our OAuth Applications documentation.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。