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 BasicCredential for a given URL

    Declaration

    Swift

    open func provideBasicCredential(for url: URL, challenge: URLAuthenticationChallenge, completionHandler: @escaping (BasicCredential?, Error?) -> Void)

    Parameters

    url

    for which URL the credential is asked

    challenge

    for which URLAuthenticationChallenge the credential is asked

    completionHandler

    from UI respective the retrieved BasicCredential returns 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)