NuguOAuthClient

class NuguOAuthClient(delegate: NuguOAuthClient.UrlDelegate)

NuguOAuthClient is a client for work with Authorization. that manages and persists end-user credentials.

See also

Constructors

Link copied to clipboard
fun NuguOAuthClient(delegate: NuguOAuthClient.UrlDelegate)

Types

Link copied to clipboard
enum AuthFlowState : Enum<NuguOAuthClient.AuthFlowState>

Enum class of AuthFlowState

Link copied to clipboard
object Companion
Link copied to clipboard
enum GrantType : Enum<NuguOAuthClient.GrantType>
Link copied to clipboard
interface UrlDelegate

Functions

Link copied to clipboard
fun buildAuthorization(): String
Link copied to clipboard
fun getCredentials(): Credentials

Get returns current Credentials.

Link copied to clipboard
fun handleAuthorizationFlow(authorizationRequest: AuthorizationRequest)

Authorization flow

Link copied to clipboard
fun handleIntrospect(): IntrospectResponse
Link copied to clipboard
fun handleMe(): MeResponse
Link copied to clipboard
fun handleRevoke()
Link copied to clipboard
fun handleStartDeviceAuthorization(data: String): DeviceAuthorizationResult
Link copied to clipboard
fun isExpired(): Boolean

Check if the token is expired

Link copied to clipboard
fun setCredentials(credential: Credentials)

Set the credential information.

Link copied to clipboard
fun setOptions(opts: NuguOAuthOptions)

Sets the Credentials.

Link copied to clipboard
fun setRefreshToken(refreshToken: String)