AuthorizationService

Functions

Link copied to clipboard
abstract suspend fun authorize(input: String): KmmResult<AuthenticationResponseResult.Redirect>

Builds the authentication response for this specific user from loadUserFun. Send this result as HTTP Header Location in a 302 response to the client.

Link copied to clipboard
abstract suspend fun par(request: AuthenticationRequestParameters, clientAttestation: String? = null, clientAttestationPop: String? = null): KmmResult<PushedAuthenticationResponseParameters>
abstract suspend fun par(input: String, clientAttestation: String? = null, clientAttestationPop: String? = null): KmmResult<PushedAuthenticationResponseParameters>

Pushed authorization request endpoint as defined in RFC 9126. Clients send their authorization request as HTTP POST with application/x-www-form-urlencoded to the AS.

Link copied to clipboard
abstract suspend fun token(request: TokenRequestParameters, httpRequest: RequestInfo? = null): KmmResult<TokenResponseParameters>

Verifies the authorization code sent by the client and issues an access token. Send this value JSON-serialized back to the client.