iOS HMOAuth

HMOAuth is used to authenticate with a service through a webpage and receive an Access Token to be used to download an Access Certificate.

Before usage, the redirectScheme needs to be set in Xcode's Project > Info > URL Types > URL Schemes without the "://in-app-callback" part.

Finally, for the flow to work, -handleCallback needs to be called in UIApplicationDelegate -application(_:open:options:) method.

Properties

Log to the device's console.

Declaration

var useDeviceConsole: Bool

Discussion

true logs to the device's console.
false prints to the debug console in Xcode.
Defaults to false.

Currently active logging options

Declaration

static var activeOptions: HMLoggingOptions

Values

Logs encountered errors

Declaration

static let error: HMLoggingOptions

Logs general events

Declaration

static let general: HMLoggingOptions

Logs executing commands

Declaration

static let command: HMLoggingOptions

Logs Bluetooth communications

Declaration

static let bluetooth: HMLoggingOptions

Logs telematics communications

Declaration

static let telematics: HMLoggingOptions

Logs encrypted communications

Declaration

static let encryption: HMLoggingOptions

Logs extra deep Bluetooth communications

Declaration

static let maidu: HMLoggingOptions

Logs telematics requests

Declaration

static let urlRequests: HMLoggingOptions

Logs the oauth errors

Declaration

static let oauth: HMLoggingOptions

Conforming

OptionSet

Declaration

protocol OptionSet : SetAlgebra, RawRepresentable

Discussion

A type that presents a mathematical set interface to a bit set.

Read More