AuthConfig

data class AuthConfig(val clientId: String, val clientUniqueKey: String? = null, val clientSecret: String? = null, val credentialsKey: String, val scopes: Set<String> = setOf(), val tidalLoginServiceBaseUrl: String = DEFAULT_LOGIN_SERVICE_BASE_URL, val tidalAuthServiceBaseUrl: String = DEFAULT_AUTH_SERVICE_BASE_URL, val enableCertificatePinning: Boolean = true, val logLevel: NetworkLogLevel = NetworkLogLevel.NONE)

Configuration object for the Auth module.

Parameters

clientId

The client ID of the application.

clientUniqueKey

The unique key of the application.

clientSecret

The client secret of the application.

credentialsKey

The key used to encrypt and store store credentials on the device.

scopes

The scopes that the application requests.

tidalLoginServiceBaseUrl

The base URL of the TIDAL login service. Only pass in a value if you want to override the default value.

tidalAuthServiceBaseUrl

The base URL of the TIDAL auth service. Only pass in a value if you want to override the default value.

enableCertificatePinning

Whether certificate pinning is enabled.

logLevel

The NetworkLogLevel for the network layer. Default is NetworkLogLevel.NONE, which means no logging.

Constructors

Link copied to clipboard
constructor(clientId: String, clientUniqueKey: String? = null, clientSecret: String? = null, credentialsKey: String, scopes: Set<String> = setOf(), tidalLoginServiceBaseUrl: String = DEFAULT_LOGIN_SERVICE_BASE_URL, tidalAuthServiceBaseUrl: String = DEFAULT_AUTH_SERVICE_BASE_URL, enableCertificatePinning: Boolean = true, logLevel: NetworkLogLevel = NetworkLogLevel.NONE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val clientSecret: String? = null
Link copied to clipboard
val clientUniqueKey: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard