mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore: add changeset for org api resource (#5719)
chore: add change set for org api resource
This commit is contained in:
parent
5872172cbb
commit
1ef32d6d54
1 changed files with 13 additions and 0 deletions
13
.changeset/thirty-cameras-explain.md
Normal file
13
.changeset/thirty-cameras-explain.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
"@logto/core": minor
|
||||
---
|
||||
|
||||
update token grant to support organization API resources
|
||||
|
||||
Organization roles can be assigned with scopes (permissions) from the API resources, and the token grant now supports this.
|
||||
|
||||
Once the user is consent to an application with "resources" assigned, the token grant will now include the scopes inherited from all assigned organization roles.
|
||||
|
||||
Users can narrow down the scopes by passing `organization_id` when granting an access token, and the token will only include the scopes from the organization roles of the specified organization, the access token will contain an extra claim `organization_id` to indicate the organization the token is granted for. Then the resource server can use this claim to protect the resource with additional organization-level authorization.
|
||||
|
||||
This change is backward compatible, and the existing token grant will continue to work as before.
|
Loading…
Reference in a new issue