A challenge from a server requiring authentication from the client.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Your app receives authentication challenges in various
NSURLDownload delegate methods, such as
url. These objects provide the information you’ll need when deciding how to handle a server’s request for authentication.
At the core of that authentication challenge is a protection space that defines the type of authentication being requested, the host and port number, the networking protocol, and (where applicable) the authentication realm (a group of related URLs on the same server that share a single set of credentials).