# Set basic authentication

This is a pre-built action located under the **WebService List Element**.The functionality of this action in Avo Assure is to set up basic authentication credentials (username and password) for a web service request.

### Syntax

**Input Value:** `<Username>;<Password>(AES Encrypted)`

| Argument                              | Description                                                                                       |
| ------------------------------------- | ------------------------------------------------------------------------------------------------- |
| \<Username>(Required)                 | Provide the username string to be used for login or authentication.                               |
| \<Password>(AES Encrypted) (Required) | Provide the encrypted password string. The password must be encrypted using AES encryption method |

#### Output Value

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Example**

**Sets Basic Authentication Credentials for a Web Service Request**

The **Set basic authentication** action takes the value from the Input Value column **(e.g., testuser;RfIg+4VVGuYglmcS0tXMGA==)** where the password is AES encrypted. It sets the Basic Authentication header for the WebService request using the provided username and encrypted password.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F75uHfF6Oj1Ha0TfpkQM5%2Fimage.png?alt=media&#x26;token=99fd7e71-212c-477e-8d1f-d176db003709" alt=""><figcaption></figcaption></figure>
