Authgear
public class Authgear
Undocumented
-
Undocumented
Declaration
Swift
public let isSSOEnabled: Bool
-
Undocumented
Declaration
Swift
public private(set) var accessToken: String? { get }
-
Undocumented
Declaration
Swift
public var idTokenHint: String? { get }
-
Undocumented
Declaration
Swift
public var canReauthenticate: Bool { get }
-
Undocumented
Declaration
Swift
public var authTime: Date? { get }
-
Undocumented
Declaration
Swift
public private(set) var sessionState: SessionState { get }
-
Undocumented
Declaration
Swift
public weak var delegate: AuthgearDelegate?
-
Undocumented
Declaration
Swift
public init( clientId: String, endpoint: String, tokenStorage: TokenStorage = PersistentTokenStorage(), uiImplementation: UIImplementation = ASWebAuthenticationSessionUIImplementation(), isSSOEnabled: Bool = false, name: String? = nil, app2AppOptions: App2AppOptions = App2AppOptions( isEnabled: false, authorizationEndpoint: nil ) )
-
Undocumented
Declaration
Swift
public func configure( handler: VoidCompletionHandler? = nil )
-
Undocumented
Declaration
Swift
public func application( _ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void ) -> Bool
-
Undocumented
Declaration
Swift
public func scene(_ scene: UIScene, continue userActivity: NSUserActivity)
-
authenticate(redirectURI:
state: xState: prompt: loginHint: uiLocales: colorScheme: wechatRedirectURI: page: authenticationFlowGroup: handler: ) Undocumented
Declaration
Swift
public func authenticate( redirectURI: String, state: String? = nil, xState: String? = nil, prompt: [PromptOption]? = nil, loginHint: String? = nil, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, page: AuthenticationPage? = nil, authenticationFlowGroup: String? = nil, handler: @escaping UserInfoCompletionHandler )
-
reauthenticate(redirectURI:
state: xState: uiLocales: colorScheme: wechatRedirectURI: maxAge: localizedReason: policy: customUIQuery: authenticationFlowGroup: handler: ) Undocumented
Declaration
Swift
public func reauthenticate( redirectURI: String, state: String? = nil, xState: String? = nil, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, maxAge: Int? = nil, localizedReason: String? = nil, policy: BiometricLAPolicy? = nil, customUIQuery: String? = nil, authenticationFlowGroup: String? = nil, handler: @escaping UserInfoCompletionHandler )
-
Undocumented
Declaration
Swift
public func authenticateAnonymously( handler: @escaping UserInfoCompletionHandler )
-
Undocumented
Declaration
Swift
public func promoteAnonymousUser( redirectURI: String, state: String? = nil, xState: String? = nil, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, handler: @escaping UserInfoCompletionHandler )
-
Undocumented
Declaration
Swift
public func logout( force: Bool = false, redirectURI: String? = nil, handler: @escaping (Result<Void, Error>) -> Void )
-
Undocumented
Declaration
Swift
public func openURL( path: String, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, handler: VoidCompletionHandler? = nil )
-
Undocumented
Declaration
Swift
public func open( page: SettingsPage, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil )
-
Undocumented
Declaration
Swift
public func changePassword( uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, redirectURI: String, handler: VoidCompletionHandler? = nil )
-
Undocumented
Declaration
Swift
public func refreshAccessTokenIfNeeded( handler: @escaping VoidCompletionHandler )
-
Undocumented
Declaration
Swift
public func clearSessionState( handler: @escaping VoidCompletionHandler )
-
Undocumented
Declaration
Swift
public func fetchUserInfo(handler: @escaping UserInfoCompletionHandler)
-
Undocumented
Declaration
Swift
public func refreshIDToken(handler: @escaping VoidCompletionHandler)
-
Undocumented
Declaration
Swift
public func wechatAuthCallback(code: String, state: String, handler: VoidCompletionHandler? = nil)
-
Undocumented
Declaration
Swift
public func checkBiometricSupported() throws
-
Undocumented
Declaration
Swift
public func isBiometricEnabled() throws -> Bool
-
Undocumented
Declaration
Swift
public func disableBiometric() throws
-
Undocumented
Declaration
Swift
public func enableBiometric( localizedReason: String, constraint: BiometricAccessConstraint, handler: @escaping VoidCompletionHandler )
-
Undocumented
Declaration
Swift
public func authenticateBiometric( localizedReason: String, policy: BiometricLAPolicy, handler: @escaping UserInfoCompletionHandler )
-
Undocumented
Declaration
Swift
public func startApp2AppAuthentication( options: App2AppAuthenticateOptions, handler: @escaping UserInfoCompletionHandler )
-
Undocumented
Declaration
Swift
public func parseApp2AppAuthenticationRequest(userActivity: NSUserActivity) -> App2AppAuthenticateRequest?
-
Undocumented
Declaration
Swift
public func approveApp2AppAuthenticationRequest( request: App2AppAuthenticateRequest, handler: @escaping (Result<Void, Error>) -> Void )
-
Undocumented
Declaration
Swift
public func rejectApp2AppAuthenticationRequest( request: App2AppAuthenticateRequest, reason: Error, handler: @escaping (Result<Void, Error>) -> Void )
-
Undocumented
Declaration
Swift
public func handleApp2AppAuthenticationResult( userActivity: NSUserActivity ) -> Bool
-
Undocumented
Declaration
Swift
var experimental: AuthgearExperimental { get }