You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using simplified scope configuration in Logto, the scope handling behavior appears inconsistent with RFC 8707/RFC6749 Section 3.3 specifications. While explicit scope requests work as expected, using simplified scope configuration results in empty scopes being returned, rather than the expected intersection of available and requested scopes.
Expected behavior
When using simplified scope configuration (Cartesian product of scopes and resources), the system should:
Process the simplified scopes (read, write) against the resource's defined scopes (shopping:read, shopping:write)
Return the intersection of available and requested scopes when obtaining resource tokens
Follow RFC 8707/RFC6749 Section 3.3 specifications for scope resolution
Example expected result for a user with role-based scopes [shopping:read, shopping:write]:
When requesting scopes [read, write], should return [shopping:read, shopping:write]
How to reproduce?
Configure API resource with scopes shopping:read and shopping:write
Create a role with scopes shopping:read and shopping:write
Describe the bug
When using simplified scope configuration in Logto, the scope handling behavior appears inconsistent with RFC 8707/RFC6749 Section 3.3 specifications. While explicit scope requests work as expected, using simplified scope configuration results in empty scopes being returned, rather than the expected intersection of available and requested scopes.
Expected behavior
When using simplified scope configuration (Cartesian product of scopes and resources), the system should:
read
,write
) against the resource's defined scopes (shopping:read
,shopping:write
)Example expected result for a user with role-based scopes [
shopping:read
,shopping:write
]:read
,write
], should return [shopping:read
,shopping:write
]How to reproduce?
shopping:read
andshopping:write
shopping:read
andshopping:write
/oidc/token
endpoint using either:grant_type: authorization_code
grant_type: refresh_token
[]
instead of the expected [shopping:read
,shopping:write
]Context
Additional context
For comparison, when using explicit scope configuration, everything works as expected:
This configuration correctly returns the expected scopes based on user roles.
Test environment details:
shopping:read
,shopping:write
]shopping:read
,shopping:write
]read
,write
]Doc Ref
configure-logto-client
The text was updated successfully, but these errors were encountered: