FioriBasicCredentialsViewControllerPresenter
open class FioriBasicCredentialsViewControllerPresenter : FlowPresentationDelegateClient, BasicCredentialDiscovery, FUIBasicAuthenticationDelegate
Presenter to handle BasicCredentialsViewController presentation
-
Configuration handler for BasicCredentialsViewController
Declaration
Swift
public var basicViewControllerConfigurationHandler: (FUIBasicAuthenticationScreen) -> Void -
The delegate which handles the UIViewController presentation.
Declaration
Swift
open var presentationDelegate: FlowPresentationDelegate! { get set } -
Before the info screen is presented, this handler is called for customization. By default it does nothing.
Declaration
Swift
open var infoScreenConfigurationHandler: (FUIInfoViewController) -> Void { get set } -
An option set to configure when to present the info screen.
Declaration
Swift
open var infoScreenPresentationOptions: InfoScreenPresentationOptions { get set } -
Designated initializer
Declaration
Swift
public init() -
Provide
BasicCredentialfor a givenURLDeclaration
Swift
open func provideBasicCredential(for url: URL, challenge: URLAuthenticationChallenge, completionHandler: @escaping (BasicCredential?, Error?) -> Void)Parameters
urlfor which
URLthe credential is askedchallengefor which
URLAuthenticationChallengethe credential is askedcompletionHandlerfrom UI respective the retrieved
BasicCredentialreturns with completion handler
-
Declaration
Swift
public func didSignIn(_ controller: FUIBasicAuthenticationScreen, username: String, password: String, completion: @escaping ((String?) -> Void)) -
Declaration
Swift
public func didCancel(_ controller: FUIBasicAuthenticationScreen)