Package-level declarations

Types

Link copied to clipboard
data class DeviceCodeResponse(val deviceCode: String, val userCode: String, val verificationUri: String, val verificationUriComplete: String?, val expiresIn: Int, val interval: Int)
Link copied to clipboard
class DeviceFlowClient(metadata: OAuthServerMetadata, clientId: String, client: OkHttpClient)
Link copied to clipboard
sealed class DeviceFlowState
Link copied to clipboard
sealed class OAuthDeviceFlowError(val message: String)
Link copied to clipboard
class OAuthDiscovery(client: OkHttpClient)

Клиент для получения метаданных OAuth сервера из discovery endpoint.

Link copied to clipboard
class OAuthException(val message: String, val statusCode: Int? = null, val errorBody: String? = null, cause: Throwable? = null) : Exception
Link copied to clipboard
data class OAuthServerMetadata(val issuer: String, val deviceAuthorizationEndpoint: String, val tokenEndpoint: String, val authorizationEndpoint: String?, val registrationEndpoint: String?, val introspectionEndpoint: String?, val grantTypesSupported: List<String>, val responseTypesSupported: List<String>?, val scopesSupported: List<String>?)

Метаданные OAuth сервера, полученные из discovery endpoint.

Link copied to clipboard
class OAuthTokenRefresh(metadata: OAuthServerMetadata, clientId: String, client: OkHttpClient)
Link copied to clipboard
data class StoredToken(val accessToken: String, val tokenType: String, val expiresAt: Long?, val refreshToken: String?)
Link copied to clipboard
data class TokenResponse(val accessToken: String, val tokenType: String, val expiresIn: Int?, val refreshToken: String?)
Link copied to clipboard
class TokenStore(context: Context)