iOS HMOAuthRequiredValues
HMOAuthRequiredValues is used to set OAuth's required values.
Initialising
Initialises an HMAuthRequiredValues type with values
Declaration
init(appID: String, authURI: String, clientID: String, redirectScheme: String, tokenURI: String)
Parameters
appID | (String) application identifier |
authURI | (String) authentication URI |
clientID | (String) client identifier |
redirectScheme | (String) redirection scheme |
tokenURI | (String) token URI |
Returns
HMOAuthRequiredValues
Example
import HMKit
let appID: "71A944F8AB4986CD3C7CA0B5"
let authURI: "https://sandbox.owner-panel.high-mobility.com/hm_cloud/o/e4af4852-dae2-4025-a5d2-7f34e8dc0837/oauth"
let clientID: "2ed283d6-a47f-450e-8e65-eb0c5b55ef65"
let redirectScheme: "com.hm.dev.1272344515-6bg-ge7enh0u://in-app-callback"
let tokenURI: "https://sandbox.api.high-mobility.com/v1/e4af4852-dae2-4025-a5d2-7f34e8dc0837/oauth/access_tokens"
let requiredValues = HMOAuthRequiredValues(appID: appID, authURI: authURI, clientID: clientID, redirectScheme: redirectScheme, tokenURI: tokenURI)
Properties
Application identifier
Declaration
let appID: String
Authentication URI
Declaration
let authURI: String
Client identifier
Declaration
let clientID: String
Redirection scheme
Declaration
let redirectScheme: String
Token URI
Declaration
let tokenURI: String