Authgear
public class Authgear
Undocumented
-
Undocumented
Declaration
Swift
public let isSSOEnabled: Bool
-
Undocumented
Declaration
Swift
public let preAuthenticatedURLEnabled: 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?
-
init(clientId:
endpoint: tokenStorage: uiImplementation: isSSOEnabled: preAuthenticatedURLEnabled: name: app2AppOptions: ) Undocumented
Declaration
Swift
public init( clientId: String, endpoint: String, tokenStorage: TokenStorage = PersistentTokenStorage(), uiImplementation: UIImplementation = ASWebAuthenticationSessionUIImplementation(), isSSOEnabled: Bool = false, preAuthenticatedURLEnabled: 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:
xState: prompt: uiLocales: colorScheme: wechatRedirectURI: page: authenticationFlowGroup: oauthProviderAlias: handler: ) Declaration
Swift
public func authenticate( redirectURI: String, xState: String? = nil, prompt: [PromptOption]? = nil, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, page: AuthenticationPage? = nil, authenticationFlowGroup: String? = nil, oauthProviderAlias: String? = nil, handler: @escaping UserInfoCompletionHandler )
Parameters
xState
Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
-
reauthenticate(redirectURI:
xState: uiLocales: colorScheme: wechatRedirectURI: maxAge: localizedReason: policy: customUIQuery: authenticationFlowGroup: oauthProviderAlias: handler: ) Declaration
Swift
public func reauthenticate( redirectURI: String, 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, oauthProviderAlias: String? = nil, handler: @escaping UserInfoCompletionHandler )
Parameters
xState
Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
-
Undocumented
Declaration
Swift
public func authenticateAnonymously( handler: @escaping UserInfoCompletionHandler )
-
promoteAnonymousUser(redirectURI:
xState: uiLocales: colorScheme: wechatRedirectURI: oauthProviderAlias: handler: ) Declaration
Swift
public func promoteAnonymousUser( redirectURI: String, xState: String? = nil, uiLocales: [String]? = nil, colorScheme: ColorScheme? = nil, wechatRedirectURI: String? = nil, oauthProviderAlias: String? = nil, handler: @escaping UserInfoCompletionHandler )
Parameters
xState
Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
-
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 deleteAccount( 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
public func makePreAuthenticatedURL( webApplicationClientID: String, webApplicationURI: String, state: String?, handler: @escaping URLCompletionHandler )
-
Undocumented
Declaration
Swift
var experimental: AuthgearExperimental { get }