createAuthnRequestAsSignedRequestObject

suspend fun createAuthnRequestAsSignedRequestObject(requestOptions: OidcSiopVerifier.RequestOptions): KmmResult<JwsSigned>(source)

Creates an JWS Authorization Request (JAR, RFC9101), wrapping the usual AuthenticationRequestParameters.

To use this for an Authentication Request with request_uri, use the following code, jar being the result of this function:

val urlToSendToWallet = io.ktor.http.URLBuilder(walletUrl).apply {
parameters.append("client_id", clientId)
parameters.append("request_uri", requestUrl)
}.buildString()
// on an GET to requestUrl, return `jar.serialize()`