---
title: URLSession.AuthChallengeDisposition
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/urlsession/authchallengedisposition
---

# URLSession.AuthChallengeDisposition

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

## Declaration

```swift
enum AuthChallengeDisposition
```

## Topics

### Constants

- [URLSession.AuthChallengeDisposition.useCredential](foundation/urlsession/authchallengedisposition/usecredential.md)
- [URLSession.AuthChallengeDisposition.performDefaultHandling](foundation/urlsession/authchallengedisposition/performdefaulthandling.md)
- [URLSession.AuthChallengeDisposition.cancelAuthenticationChallenge](foundation/urlsession/authchallengedisposition/cancelauthenticationchallenge.md)
- [URLSession.AuthChallengeDisposition.rejectProtectionSpace](foundation/urlsession/authchallengedisposition/rejectprotectionspace.md)

### Initializers

- [init(rawValue:)](foundation/urlsession/authchallengedisposition/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling authentication challenges

- [urlSession(_:didReceive:completionHandler:)](foundation/urlsessiondelegate/urlsession(_:didreceive:completionhandler:).md)
