Skip to content

Commit

Permalink
fix: Do not retrieve AS metadata from store in case an external AS is…
Browse files Browse the repository at this point in the history
… used. Fetch from remote
  • Loading branch information
nklomp committed Jan 10, 2025
1 parent 99c3f8e commit 7f46a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oid4vci-issuer/src/agent/OID4VCIIssuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class OID4VCIIssuer implements IAgentPlugin {

private getExternalAS(issuerMetadata: IssuerMetadata): string | undefined {
if ('authorization_servers' in issuerMetadata && Array.isArray(issuerMetadata.authorization_servers)) {
return issuerMetadata.authorization_servers.find((as) => as.token_endpoint)
return issuerMetadata.authorization_servers.find((as) => as !== issuerMetadata.credential_issuer)
}
return undefined
}
Expand Down

0 comments on commit 7f46a5a

Please sign in to comment.