AuthenticationApiClient

Functions

Link copied to clipboard
abstract suspend fun addThirdPartyIdentifiers(clientSecret: String, sessionId: String, asUserId: UserId? = null): Result<UIA<Unit>>
Link copied to clipboard
abstract suspend fun bindThirdPartyIdentifiers(clientSecret: String, sessionId: String, idAccessToken: String, idServer: String, asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun changePassword(newPassword: String, logoutDevices: Boolean = false): Result<UIA<Unit>>
Link copied to clipboard
abstract suspend fun deactivateAccount(identityServer: String? = null, asUserId: UserId? = null): Result<UIA<DeactivateAccount.Response>>
Link copied to clipboard
abstract suspend fun deleteThirdPartyIdentifiers(address: String, idServer: String? = null, medium: ThirdPartyIdentifier.Medium, asUserId: UserId? = null): Result<DeleteThirdPartyIdentifiers.Response>
Link copied to clipboard
abstract suspend fun getEmailRequestTokenForPassword(request: GetEmailRequestTokenForPassword.Request): Result<GetEmailRequestTokenForPassword.Response>
Link copied to clipboard
abstract suspend fun getEmailRequestTokenForRegistration(request: GetEmailRequestTokenForRegistration.Request): Result<GetEmailRequestTokenForRegistration.Response>
Link copied to clipboard
abstract suspend fun getLoginTypes(): Result<Set<LoginType>>
Link copied to clipboard
abstract suspend fun getMsisdnRequestTokenForPassword(request: GetMsisdnRequestTokenForPassword.Request): Result<GetMsisdnRequestTokenForPassword.Response>
Link copied to clipboard
abstract suspend fun getMsisdnRequestTokenForRegistration(request: GetMsisdnRequestTokenForRegistration.Request): Result<GetMsisdnRequestTokenForRegistration.Response>
Link copied to clipboard
abstract suspend fun getOIDCRequestToken(userId: UserId, asUserId: UserId? = null): Result<GetOIDCRequestToken.Response>
Link copied to clipboard
abstract suspend fun getThirdPartyIdentifiers(asUserId: UserId? = null): Result<Set<ThirdPartyIdentifier>>
Link copied to clipboard
abstract suspend fun getToken(asUserId: UserId? = null): Result<UIA<GetToken.Response>>
Link copied to clipboard
abstract suspend fun isRegistrationTokenValid(token: String): Result<Boolean>
Link copied to clipboard
abstract suspend fun isUsernameAvailable(username: String): Result<Unit>
Link copied to clipboard
abstract suspend fun login(identifier: IdentifierType? = null, passwordOrToken: String, type: LoginType = LoginType.Password, deviceId: String? = null, initialDeviceDisplayName: String? = null): Result<Login.Response>
abstract suspend fun login(identifier: IdentifierType? = null, password: String? = null, token: String? = null, type: LoginType = LoginType.Password, deviceId: String? = null, initialDeviceDisplayName: String? = null): Result<Login.Response>
Link copied to clipboard
abstract suspend fun logout(asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun logoutAll(asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun refresh(refreshToken: String? = null): Result<Refresh.Response>
Link copied to clipboard
abstract suspend fun register(username: String? = null, password: String? = null, accountType: AccountType? = null, deviceId: String? = null, initialDeviceDisplayName: String? = null, inhibitLogin: Boolean? = null, isAppservice: Boolean = false): Result<UIA<Register.Response>>
Link copied to clipboard
abstract suspend fun ssoRedirect(redirectUrl: String): Result<Unit>
abstract suspend fun ssoRedirect(redirectUrl: String, idpId: String): Result<Unit>
Link copied to clipboard
abstract suspend fun unbindThirdPartyIdentifiers(address: String, idServer: String? = null, medium: ThirdPartyIdentifier.Medium, asUserId: UserId? = null): Result<UnbindThirdPartyIdentifiers.Response>
Link copied to clipboard
abstract suspend fun whoAmI(asUserId: UserId? = null): Result<WhoAmI.Response>