---
title: ASImportableCredential.BasicAuthentication
framework: authenticationservices
role: symbol
role_heading: Structure
path: authenticationservices/asimportablecredential/basicauthentication
---

# ASImportableCredential.BasicAuthentication

A type to represent a basic authentication password.

## Declaration

```swift
struct BasicAuthentication
```

## Overview

Overview This type is a representation of BasicAuth as defined in the Credential Exchange Format (CXF) specification.

## Topics

### Accessing authentication properties

- [password](authenticationservices/asimportablecredential/basicauthentication/password.md)
- [ASImportableEditableField](authenticationservices/asimportableeditablefield.md)

### Initializers

- [init(userName:password:)](authenticationservices/asimportablecredential/basicauthentication/init(username:password:).md)

### Instance Properties

- [userName](authenticationservices/asimportablecredential/basicauthentication/username.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Login credential types

- [ASImportableCredential.basicAuthentication(_:)](authenticationservices/asimportablecredential/basicauthentication(_:).md)
- [ASImportableCredential.passkey(_:)](authenticationservices/asimportablecredential/passkey(_:).md)
- [ASImportableCredential.Passkey](authenticationservices/asimportablecredential/passkey.md)
- [ASImportableCredential.totp(_:)](authenticationservices/asimportablecredential/totp(_:).md)
- [ASImportableCredential.TOTP](authenticationservices/asimportablecredential/totp.md)
