Enumeration Case


Reject this challenge, and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored.


NSURLSessionAuthChallengeRejectProtectionSpace = 3


The NSURLSessionAuthChallengeRejectProtectionSpace disposition is only appropriate in fairly unusual situations. For example, a Windows server might use both NSURLAuthenticationMethodNegotiate and NSURLAuthenticationMethodNTLM. 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 NSURLSessionAuthChallengePerformDefaultHandling disposition instead.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software