-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kf_setImageWithURL with Authentication Challenge ? #226
Comments
If you are using ImageDownloader.defaultDownloader.trustedHosts!.insert("yourhost.com") And if you are using HTTP basic authentication, you could just modify the request by injecting with However, if you are using other authentication methods, like client certificate, currently there is no way in Kingfisher for it. I believe we should add a delegate of it for better extensibility. I will check it to see whether I could do something on this later. |
Now you should be able to use |
Version 2.1.0 is released, which contains this feature. |
@onevcat Could you write example how to use authenticationChallengeResponder, basicaly i want to download image like this : |
My app is using below API to download image async manner.
public func kf_setImageWithURL(URL: NSURL, placeholderImage: UIImage?, optionsInfo: Kingfisher.KingfisherOptionsInfo?, completionHandler: Kingfisher.CompletionHandler?) -> Kingfisher.RetrieveImageTask
Problem i am facing is - how to provide authentication challenge response if my server is requesting to download any response. I know there are ways in normal NSURLConnection connection with delegate -
(void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler
Is there any way in kingfisher where i can provide my credential before downloading image?
The text was updated successfully, but these errors were encountered: