FRSession
extension FRSession
-
Invokes /authenticate endpoint in AM with predefined UI elements to go through Authentication Tree flow with
resumeURI
andsuspendedId
to resume Authentication Tree flow.Declaration
Swift
public static func authenticateWithUI(_ resumeURI: URL, _ rootViewController: UIViewController, completion: @escaping NodeUICompletion<Token>)
Parameters
resumeURI
Resume URI received in Email from Suspned Email Node; URI must contain
suspendedId
in URL query parameterrootViewController
root viewController which will initiate navigation flow
completion
NodeCompletion 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
policyAdvice
PolicyAdvice object containing authorization information
rootViewController
root viewController which will initiate navigation flow
completion
NodeCompletion 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
authIndexValue
authIndexValue; Authentication Tree name value in String
authIndexType
authIndexType; Authentication Tree type value in String
rootViewController
root viewController which will initiate navigation flow
completion
NodeCompletion callback which returns the result of Session Token as Token object