Skip to content

Commit bcb7311

Browse files
committed
fix(openid4vci): use credential issuer identifier as proof audience
The proof JWT audience (aud) must be the Credential Issuer Identifier per v1.0 Section 8.2.1.1, not the Authorization Server issuer. These differ when the credential issuer delegates to a separate AS.
1 parent bb52987 commit bcb7311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth/api/iam/openid4vci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (r Wrapper) RequestOpenid4VCICredentialIssuance(ctx context.Context, reques
137137
// OpenID4VCI issuers may use multiple Authorization Servers
138138
// We must use the token_endpoint that corresponds to the same Authorization Server used for the authorization_endpoint
139139
TokenEndpoint: authzServerMetadata.TokenEndpoint,
140-
IssuerURL: authzServerMetadata.Issuer,
140+
IssuerURL: credentialIssuerMetadata.CredentialIssuer,
141141
IssuerCredentialEndpoint: credentialIssuerMetadata.CredentialEndpoint,
142142
IssuerNonceEndpoint: credentialIssuerMetadata.NonceEndpoint,
143143
IssuerCredentialConfigurationID: credentialConfigID,

0 commit comments

Comments
 (0)