Skip to content

Commit

Permalink
chore: .well-known/openid-federation return CT application/entity-sta…
Browse files Browse the repository at this point in the history
…tement+jwt
  • Loading branch information
sanderPostma committed Nov 5, 2024
1 parent 0d791c8 commit 65fde90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/issuer-rest/lib/oid4vci-api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,10 @@ export function getMetadataEndpoints<DIDDoc extends object>(router: Router, issu
if(!issuer.openidFederationMetadata || !issuer.openidFederationMetadata.jwt) {
return response.status(404).send()
}
return response.send(issuer.openidFederationMetadata.jwt)
const asciiContent = Buffer.from(issuer.openidFederationMetadata.jwt, 'utf8').toString('ascii')
return response
.type('application/entity-statement+jwt')
.send(asciiContent)
}
router.get(WellKnownEndpoints.OPENID_FEDERATION, openidFederationHandler)
}
Expand Down

0 comments on commit 65fde90

Please sign in to comment.