BasicCredentialDiscovery
public protocol BasicCredentialDiscovery : AnyObject
Protocol to get the credential from the user
-
Provide
BasicCredentialfor a givenURLandURLAuthenticationChallengeDeclaration
Swift
func provideBasicCredential(for url: URL, challenge: URLAuthenticationChallenge, completionHandler: @escaping (BasicCredential?, Error?) -> Swift.Void)Parameters
urlfor which
URLthe credential is askedchallengefor which
URLAuthenticationChallengethe credential is askedcompletionHandlerfrom UI respective the retrieved
BasicCredentialreturns with completion handler