createAuthnRequestAsRequestObject

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

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

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)