credential
suspend fun credential( authorizationHeader: String, params: CredentialRequestParameters, request: RequestInfo? = null): KmmResult<CredentialResponseParameters>(source)
Verifies the authorizationHeader to contain a token from authorizationService, verifies the proof sent by the client (must contain a nonce sent from authorizationService), and issues credentials to the client.
Callers need to send the result JSON-serialized back to the client. HTTP status code MUST be 202.
Parameters
authorizationHeader
value of HTTP header Authorization
sent by the client, with all prefixes
params
Parameters the client sent JSON-serialized in the HTTP body
request
information about the HTTP request the client has made, to validate authentication