FRSession
extension FRSession
-
Invokes /authenticate endpoint in AM with predefined UI elements to go through Authentication Tree flow with
resumeURIandsuspendedIdto resume Authentication Tree flow.Declaration
Swift
public static func authenticateWithUI(_ resumeURI: URL, _ rootViewController: UIViewController, completion: @escaping NodeUICompletion<Token>)Parameters
resumeURIResume URI received in Email from Suspned Email Node; URI must contain
suspendedIdin URL query parameterrootViewControllerroot viewController which will initiate navigation flow
completionNodeCompletion callback which returns the result of Session Token as Token object
-
Invokes /authenticate endpoint in AM with predefined UI elements to go through Authentication Tree flow with PolicyAdvice object which contains information about Authorization and/or Transactional Authorization
Declaration
Swift
public static func authenticateWithUI(_ policyAdvice: PolicyAdvice, _ rootViewController: UIViewController, completion: @escaping NodeUICompletion<Token>)Parameters
policyAdvicePolicyAdvice object containing authorization information
rootViewControllerroot viewController which will initiate navigation flow
completionNodeCompletion callback which returns the result of Session Token as Token object
-
Invokes /authenticate endpoint in AM with predefined UI elements to go through Authentication Tree flow with specified authIndexValue and authIndexType; authIndexType is an optional parameter defaulted to ‘service’ if not defined
Declaration
Swift
public static func authenticateWithUI(_ authIndexValue: String, _ authIndexType: String, _ rootViewController: UIViewController, completion: @escaping NodeUICompletion<Token>)Parameters
authIndexValueauthIndexValue; Authentication Tree name value in String
authIndexTypeauthIndexType; Authentication Tree type value in String
rootViewControllerroot viewController which will initiate navigation flow
completionNodeCompletion callback which returns the result of Session Token as Token object
View on GitHub