Authentication Api
class AuthenticationApi
Content copied to clipboard
Interacts with the server API.
Constructors
AuthenticationApi
Link copied to clipboard
fun AuthenticationApi()
Content copied to clipboard
Types
Properties
Functions
formatCookie
Link copied to clipboard
jsonRequestBody
Link copied to clipboard
objectValue
Link copied to clipboard
parseCredentialDescriptors
Link copied to clipboard
private fun parseCredentialDescriptors(reader: JsonReader): List<PublicKeyCredentialDescriptor>
Content copied to clipboard
parseError
Link copied to clipboard
parseParameters
Link copied to clipboard
private fun parseParameters(reader: JsonReader): List<PublicKeyCredentialParameters>
Content copied to clipboard
parsePublicKeyCredentialCreationOptions
Link copied to clipboard
private fun parsePublicKeyCredentialCreationOptions(body: ResponseBody): PublicKeyCredentialCreationOptions
Content copied to clipboard
parsePublicKeyCredentialRequestOptions
Link copied to clipboard
private fun parsePublicKeyCredentialRequestOptions(body: ResponseBody): PublicKeyCredentialRequestOptions
Content copied to clipboard
parseRp
Link copied to clipboard
parseSelection
Link copied to clipboard
private fun parseSelection(reader: JsonReader): AuthenticatorSelectionCriteria
Content copied to clipboard
parseSessionId
Link copied to clipboard
parseUser
Link copied to clipboard
parseUserCredentials
Link copied to clipboard
registerRequest
Link copied to clipboard
fun registerRequest(sessionId: String): ApiResult<PublicKeyCredentialCreationOptions>
Content copied to clipboard
registerResponse
Link copied to clipboard
fun registerResponse(sessionId: String, response: AuthenticatorAttestationResponse): ApiResult<List<Credential>>
Content copied to clipboard
signinRequest
Link copied to clipboard
fun signinRequest(sessionId: String, credentialId: String?): ApiResult<PublicKeyCredentialRequestOptions>
Content copied to clipboard
signinResponse
Link copied to clipboard
fun signinResponse(sessionId: String, response: AuthenticatorAssertionResponse): ApiResult<List<Credential>>
Content copied to clipboard
throwResponseError
Link copied to clipboard
private fun throwResponseError(response: Response, message: String): Nothing
Content copied to clipboard