Skip to content

Commit

Permalink
chore: response types in issuer metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
chsavvaidis committed Feb 17, 2025
1 parent e10209e commit 218cfc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ object OpenID4VCI {
subjectTypesSupported = setOf(SubjectType.public),
credentialIssuer = baseUrl,
responseTypesSupported = setOf(
"code",
"vp_token",
"id_token"
), // (EBSI) this is required one https://www.rfc-editor.org/rfc/rfc8414.html#section-2
idTokenSigningAlgValuesSupported = setOf("ES256"), // (EBSI) https://openid.net/specs/openid-connect-self-issued-v2-1_0.html#name-self-issued-openid-provider-
ResponseType.Code.value,
ResponseType.VpToken.value,
ResponseType.IdToken.value
),
idTokenSigningAlgValuesSupported = setOf("ES256"),
codeChallengeMethodsSupported = listOf("S256"),
credentialConfigurationsSupported = credentialSupported,
customParameters = customParameters!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ enum class ResponseType(val value: String) {
IdToken("id_token"),
Token("token"),
Code("code"),
VpToken("vp_token");
VpToken("vp_token"),
VpTokenIdToken("vp_token id_token");

companion object {
fun getResponseTypeString(vararg types: ResponseType) = types.joinToString(" ") { it.value }
Expand Down

0 comments on commit 218cfc2

Please sign in to comment.