The OpenID4VCI specification RECOMMENDs that resource parameter is added to authorization request when _"Credential Issuer metadata contains an authorizationservers property":
If the Credential Issuer metadata contains an authorization_servers property, it is RECOMMENDED to use a resource parameter [RFC8707] whose value is the Credential Issuer's identifier value to allow the Authorization Server to differentiate Credential Issuers.
Description of change
The OpenID4VCI specification RECOMMENDs that
resource
parameter is added to authorization request when _"Credential Issuer metadata contains an authorizationservers property":See https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#section-5.1.2-9.
This PR sets the resource property to the credential issuer identifier (URL) when credential issuer metadata has
authorization_servers
property and also changes the issuer metadataauthorization_servers
property to OPTIONAL as specified, see https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html#section-11.2.3-2.2.Fixes #57.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
resource
parameter to be present in authorization requests.Checklist: