Hi,
The "Relationship to the 'scope' Parameter" section[1] says both authorization_details and scope can be used in the same authorization request. We're unsure what happens when there's a conflict between them in the same request. For example, imagine a scenario where an authorization request has both the READ_ACCOUNTS scope and the following authorization_details JSON.
[
{
"type": "account_information",
"actions": [
"WRITE_ACCOUNTS"
],
"locations": [
"https://example.com/accounts"
]
}
]
curl https://www.auth-server.com/authorize? \
response_type=code& \
client_id=<client_id>& \
redirect_uri=https://www.example.com/callback& \
scope=READ_ACCOUNTS& \
authorization_details=[{"type":"account_information","actions":["WRITE_ACCOUNTS"],"locations":["https://example.com/accounts"]}]
When the scope and authorization_details conflict, does one take precedence? Or, if it's different for each API, may we know what is the best practice suggested by the specification?
[1] https://datatracker.ietf.org/doc/html/rfc9396#name-relationship-to-the-scope-p
Thanks,
Vimukthi
Hi,
The "Relationship to the 'scope' Parameter" section[1] says both
authorization_detailsandscopecan be used in the same authorization request. We're unsure what happens when there's a conflict between them in the same request. For example, imagine a scenario where an authorization request has both theREAD_ACCOUNTSscope and the following authorization_details JSON.When the scope and authorization_details conflict, does one take precedence? Or, if it's different for each API, may we know what is the best practice suggested by the specification?
[1] https://datatracker.ietf.org/doc/html/rfc9396#name-relationship-to-the-scope-p
Thanks,
Vimukthi