OAuth2API

interface OAuth2API : AuthAPI

Inheritors

Types

Link copied to clipboard
data class PinAuthData(val deviceCode: String, val userCode: String, val verificationUrl: String, val expiresIn: Int, val interval: Int)

Properties

Link copied to clipboard
abstract val createAccountUrl: String?
Link copied to clipboard
abstract val icon: Int?
Link copied to clipboard
abstract val idPrefix: String
Link copied to clipboard
abstract val key: String
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val redirectUrl: String
Link copied to clipboard
abstract val requiresLogin: Boolean
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun authenticate(activity: <Error class: unknown class>?)
Link copied to clipboard
open suspend fun getDevicePin(): OAuth2API.PinAuthData?
Link copied to clipboard
open suspend fun handleDeviceAuth(pinAuthData: OAuth2API.PinAuthData): Boolean
Link copied to clipboard
abstract suspend fun handleRedirect(url: String): Boolean
Link copied to clipboard
abstract fun loginInfo(): AuthAPI.LoginInfo?
Link copied to clipboard
abstract fun logOut()