Skip to content

[Query] Best approach to handle authorization_details and scope conflicts #101

Description

@VimukthiRajapaksha

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions