create Authn Request
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
response Mode
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
credential Scheme
which credential type to request, or null to make no restrictions
requested Attributes
list of attributes that shall be requested explicitly (selective disclosure)