Reject this challenge, and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
NSURLSession disposition is only appropriate in fairly unusual situations. For example, a Windows server might use both
NSURLAuthentication. If your app can only handle NTLM, you would want to reject the Negotiate challenge, in order to then receive the queued NTLM challenge.
However, most apps won't face this scenario, and if you cannot provide a credential for a certain authentication method, you should usually fall back to the
NSURLSession disposition instead.