createAuthnRequest

suspend fun createAuthnRequest(responseMode: String? = null, representation: ConstantIndex.CredentialRepresentation = ConstantIndex.CredentialRepresentation.PLAIN_JWT, state: String? = uuid4().toString(), credentialScheme: ConstantIndex.CredentialScheme? = null, requestedAttributes: List<String>? = null): AuthenticationRequestParameters

Creates AuthenticationRequestParameters, to be encoded as query params appended to the URL of the Wallet, e.g. https://example.com?repsonse_type=... (see createAuthnRequestUrl)

Callers may serialize the result with result.encodeToParameters().formUrlEncode()

Parameters

responseMode

which response mode to request, see OpenIdConstants.ResponseModes

representation

specifies the required representation, see ConstantIndex.CredentialRepresentation

state

opaque value which will be returned by the OpenId Provider and also in AuthnResponseResult

credentialScheme

which credential type to request, or null to make no restrictions

requestedAttributes

list of attributes that shall be requested explicitly (selective disclosure)