---
title: NSURLAuthenticationMethodHTTPBasic
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsurlauthenticationmethodhttpbasic
---

# NSURLAuthenticationMethodHTTPBasic

Use HTTP basic authentication for this protection space.

## Declaration

```swift
let NSURLAuthenticationMethodHTTPBasic: String
```

## See Also

### Task-specific authentication challenges

- [NSURLAuthenticationMethodDefault](foundation/nsurlauthenticationmethoddefault.md)
- [NSURLAuthenticationMethodHTMLForm](foundation/nsurlauthenticationmethodhtmlform.md)
- [NSURLAuthenticationMethodHTTPDigest](foundation/nsurlauthenticationmethodhttpdigest.md)
