Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🎸 Allow JWS location for PreRegistered clients #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[wallet-core](../../../index.md)/[eu.europa.ec.eudi.wallet.transfer.openId4vp](../index.md)/[PreregisteredVerifier](index.md)/[jwkSetSource](jwk-set-source.md)

# jwkSetSource

[androidJvm]\
var [jwkSetSource](jwk-set-source.md): JwkSetSource?
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//[wallet-core](../../../index.md)/[eu.europa.ec.eudi.wallet.transfer.openId4vp](../index.md)/[PreregisteredVerifier](index.md)/[jwsAlgorithm](jws-algorithm.md)

# jwsAlgorithm

[androidJvm]\
var [jwsAlgorithm](jws-algorithm.md): JWSAlgorithm?
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