NSURLCredentialStorage default credential not used automatically
问题 I'm switching from NSURLConnection to NSURLSession for my app communications and, while I'm at it, trying to move from delegated authentication to utilising NSURLCredentialStorage. I've moved over the code however I'm getting -URLSession:task:didReceiveChallenge being called on the delegate despite having set defaultCredentials on the sharedCredentialStorage when the app launches. The protection spaces are identical (the one I created when setting up the credentials and the ones passed by the