SimplifiedLoginManager
public final class SimplifiedLoginManager
-
Declaration
Swift
public enum SimplifiedLoginError : Error
-
Declaration
Swift
convenience public init(client: Client, withMFA: MFAType? = nil, state: String?, loginHint: String? = nil, extraScopeValues: Set<String> = [], completion: @escaping LoginResultHandler)
-
Declaration
Swift
convenience public init(client: Client, contextProvider: ASWebAuthenticationPresentationContextProviding, withMFA: MFAType? = nil, state: String? = nil, loginHint: String? = nil, extraScopeValues: Set<String> = [], withSSO: Bool = true, completion: @escaping LoginResultHandler)
-
Prepares and presents the Simplified Login View Controller modally. If a shared user session is found in the shared keychain this function will present a viewcontroller and then retains that shared user until requestSimplifiedLogin(…) is called again
Declaration
Swift
public func requestSimplifiedLogin(_ window: UIWindow? = nil, completion: @escaping (Result<Void, Error>) -> Void)
Parameters
window
window used to present SimplifiedLoginViewController
completion
callback that receives the UIViewController for Simplified Login or an error in case of failure