-
Notifications
You must be signed in to change notification settings - Fork 1
/
AuthConfig.swift
38 lines (36 loc) · 1.23 KB
/
AuthConfig.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import Foundation
public struct AuthConfig {
public let clientId: String
public let clientUniqueKey: String?
public let clientSecret: String?
public let credentialsKey: String
public let credentialsAccessGroup: String?
public let scopes: Set<String>
public let tidalLoginServiceBaseUri: String
public let tidalAuthServiceBaseUri: String
public let enableCertificatePinning: Bool
public let enableLogging: Bool
public init(
clientId: String,
clientUniqueKey: String? = nil,
clientSecret: String? = nil,
credentialsKey: String,
credentialsAccessGroup: String? = nil,
scopes: Set<String> = [],
tidalLoginServiceBaseUri: String = "https://login.tidal.com",
tidalAuthServiceBaseUri: String = "https://auth.tidal.com",
enableCertificatePinning: Bool = true,
enableLogging: Bool = false
) {
self.clientId = clientId
self.clientUniqueKey = clientUniqueKey
self.clientSecret = clientSecret
self.credentialsKey = credentialsKey
self.credentialsAccessGroup = credentialsAccessGroup
self.scopes = scopes
self.tidalLoginServiceBaseUri = tidalLoginServiceBaseUri
self.tidalAuthServiceBaseUri = tidalAuthServiceBaseUri
self.enableCertificatePinning = enableCertificatePinning
self.enableLogging = enableLogging
}
}