<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSession/AuthChallengeDisposition",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSURLSessionAuthChallengeDisposition"
  },
  "title" : "URLSession.AuthChallengeDisposition"
}
-->

# URLSession.AuthChallengeDisposition

Constants passed by session or task delegates to the provided continuation block in response to an authentication challenge.

```
enum AuthChallengeDisposition
```

## Topics

### Constants

[`URLSession.AuthChallengeDisposition.useCredential`](/documentation/Foundation/URLSession/AuthChallengeDisposition/useCredential)

Use the specified credential, which may be `nil`.

[`URLSession.AuthChallengeDisposition.performDefaultHandling`](/documentation/Foundation/URLSession/AuthChallengeDisposition/performDefaultHandling)

Use the default handling for the challenge as though this delegate method were not implemented. The provided credential parameter is ignored.

[`URLSession.AuthChallengeDisposition.cancelAuthenticationChallenge`](/documentation/Foundation/URLSession/AuthChallengeDisposition/cancelAuthenticationChallenge)

Cancel the entire request. The provided credential parameter is ignored.

[`URLSession.AuthChallengeDisposition.rejectProtectionSpace`](/documentation/Foundation/URLSession/AuthChallengeDisposition/rejectProtectionSpace)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)