BasicCredentialDiscovery

public protocol BasicCredentialDiscovery : AnyObject

Protocol to get the credential from the user

  • Provide BasicCredential for a given URL and URLAuthenticationChallenge

    Declaration

    Swift

    func provideBasicCredential(for url: URL, challenge: URLAuthenticationChallenge, completionHandler: @escaping (BasicCredential?, Error?) -> Swift.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