---
title: "CFHTTPAuthenticationCopyDomains(_:)"
framework: cfnetwork
role: symbol
role_heading: Function
path: "cfnetwork/cfhttpauthenticationcopydomains(_:)"
---

# CFHTTPAuthenticationCopyDomains(_:)

Returns an array of domain URLs to which a given CFHTTPAuthentication object can be applied.

## Declaration

```swift
func CFHTTPAuthenticationCopyDomains(_ auth: CFHTTPAuthentication) -> Unmanaged<CFArray>
```

## Parameters

- `auth`: The CFHTTPAuthentication object to examine.

## Return Value

Return Value A CFArray object that contains the domain URL’s to which auth should be applied. Ownership follows the The Create Rule.

## Discussion

Discussion This function is provided for informational purposes only.

## See Also

### HTTP Authentication

- [CFHTTPAuthentication](cfnetwork/cfhttpauthentication.md)
- [CFHTTPAuthenticationAppliesToRequest(_:_:)](cfnetwork/cfhttpauthenticationappliestorequest(_:_:).md)
- [CFHTTPAuthenticationCopyMethod(_:)](cfnetwork/cfhttpauthenticationcopymethod(_:).md)
- [CFHTTPAuthenticationCopyRealm(_:)](cfnetwork/cfhttpauthenticationcopyrealm(_:).md)
- [CFHTTPAuthenticationCreateFromResponse(_:_:)](cfnetwork/cfhttpauthenticationcreatefromresponse(_:_:).md)
- [CFHTTPAuthenticationGetTypeID()](cfnetwork/cfhttpauthenticationgettypeid().md)
- [CFHTTPAuthenticationIsValid(_:_:)](cfnetwork/cfhttpauthenticationisvalid(_:_:).md)
- [CFHTTPAuthenticationRequiresAccountDomain(_:)](cfnetwork/cfhttpauthenticationrequiresaccountdomain(_:).md)
- [CFHTTPAuthenticationRequiresOrderedRequests(_:)](cfnetwork/cfhttpauthenticationrequiresorderedrequests(_:).md)
- [CFHTTPAuthenticationRequiresUserNameAndPassword(_:)](cfnetwork/cfhttpauthenticationrequiresusernameandpassword(_:).md)
- [kCFHTTPAuthenticationAccountDomain](cfnetwork/kcfhttpauthenticationaccountdomain.md)
- [kCFHTTPAuthenticationPassword](cfnetwork/kcfhttpauthenticationpassword.md)
- [kCFHTTPAuthenticationSchemeBasic](cfnetwork/kcfhttpauthenticationschemebasic.md)
- [kCFHTTPAuthenticationSchemeDigest](cfnetwork/kcfhttpauthenticationschemedigest.md)
- [kCFHTTPAuthenticationSchemeKerberos](cfnetwork/kcfhttpauthenticationschemekerberos.md)
