BasicCredentialDiscovery
public protocol BasicCredentialDiscovery : AnyObject
Protocol to get the credential from the user
-
Provide
BasicCredential
for a givenURL
andURLAuthenticationChallenge
Declaration
Swift
func provideBasicCredential(for url: URL, challenge: URLAuthenticationChallenge, completionHandler: @escaping (BasicCredential?, Error?) -> Swift.Void)
Parameters
url
for which
URL
the credential is askedchallenge
for which
URLAuthenticationChallenge
the credential is askedcompletionHandler
from UI respective the retrieved
BasicCredential
returns with completion handler