CreatedRequest

data class CreatedRequest(val url: String, val loadRequestObject: suspend (RequestObjectParameters?) -> KmmResult<String>? = null)(source)

Constructors

Link copied to clipboard
constructor(url: String, loadRequestObject: suspend (RequestObjectParameters?) -> KmmResult<String>? = null)

Properties

Link copied to clipboard
val loadRequestObject: suspend (RequestObjectParameters?) -> KmmResult<String>?

Optional content that needs to be served under the previously passed in requestUrl (see CreationOptions.SignedRequestByReference.requestUrl in call to OpenId4VpVerifier.createAuthnRequest); serve it with loadRequestObjectHttpResponse, which sets the content type.

Link copied to clipboard
val url: String

URL to invoke the wallet, may be rendered as a QR Code.

Functions

Link copied to clipboard

Loads the request object with CreatedRequest.loadRequestObject, passing the params the wallet may have sent (wallet_metadata and wallet_nonce for request_uri_method=post), and converts it to the response of the request URI: status 200 with the signed, optionally encrypted, request object as application/oauth-authz-req+jwt (OpenID4VP 1.0 5.10.1, RFC 9101 5.2.3).