AuthorizationMethod

sealed class AuthorizationMethod

Authorization method required for communication with servers

Inheritors

Types

Link copied to clipboard
data class ClientCredentials(val clientId: String, val clientSecret: String, val redirectUri: String, val cardInfo: CardInfo? = null) : AuthorizationMethod

Client credentials - authorization based on client ID and secret.

Link copied to clipboard
class OAuth(val tokenProvider: AccessTokenProvider) : AuthorizationMethod

Authorization using Bearer tokens provided from the outside. This authorization method is for internal purposes, please use ClientCredentials method.