Skip to content

Commit

Permalink
feat: 🎸 Allow JWS location for PreRegistered clients
Browse files Browse the repository at this point in the history
Allow specifying JWS algorithm and location of the JWKs for
pre-registered clients.
  • Loading branch information
dBucik committed Nov 23, 2024
1 parent e05c207 commit a8a0a38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ internal object OpenId4VpUtils {
verifier.clientId to PreregisteredClient(
verifier.clientId,
verifier.legalName,
JWSAlgorithm.RS256 to ByReference(
URI("${verifier.verifierApi}/wallet/public-keys.json")
)
verifier.jwsAlgorithm to verifier.jwkSetSource
)
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@

package eu.europa.ec.eudi.wallet.transfer.openId4vp

import com.nimbusds.jose.JWSAlgorithm
import eu.europa.ec.eudi.openid4vp.DefaultHttpClientFactory
import eu.europa.ec.eudi.openid4vp.JwkSetSource
import io.ktor.client.*
import io.ktor.client.plugins.logging.*
import java.net.URI

/**
* Configuration for the OpenId4Vp transfer.
Expand Down Expand Up @@ -186,6 +189,8 @@ data class PreregisteredVerifier(
var clientId: ClientId,
var legalName: LegalName,
var verifierApi: VerifierApi,
var jwsAlgorithm: JWSAlgorithm = JWSAlgorithm.RS256,
var jwkSetSource: JwkSetSource = JwkSetSource.ByReference(URI("$verifierApi/wallet/public-keys.json"))
)

typealias ClientId = String
Expand Down

0 comments on commit a8a0a38

Please sign in to comment.