Authentication

interface Authentication

Represents the functions needed to authenticate a user and in which cases the authentication should be made.

Functions

authenticate
Link copied to clipboard
js
abstract suspend fun authenticate()
function doing the authentication
enrichRequest
Link copied to clipboard
js
abstract suspend fun enrichRequest(request: Request): Request
function enriching the request with authentication information depending on the servers need.
equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
isAuthenticated
Link copied to clipboard
js
abstract fun isAuthenticated(): Boolean
shows whether there is a successful authentication or not.
logout
Link copied to clipboard
js
abstract suspend fun logout()
performing a logout
toString
Link copied to clipboard
js
open fun toString(): String

Properties

errorcodesEnforcingAuthentication
Link copied to clipboard
js
open val errorcodesEnforcingAuthentication: List<Short>
List of HTTP-Status-Codes forcing an authentication.