matchAuthorizationDetails

RFC9396. (Ch. 6 paraphrased) Check if TokenRequestParameters.authorizationDetails in tokenRequest have at most the same scope or are implied by ClientAuthRequest.authnDetails in authRequest.

For credential requests semantic matching is used.

Return

Set of potentially transformed AuthorizationDetails from tokenRequest (function may have side effects)