# BasicAuth Validator

This validator will challenge users with browser-based basic authentication.  It will use whatever authentication system and user service you have configured. &#x20;

If you don't change the default settings, then CBSecurity will switch to using the `BasicAuthUserService` which allows you to store user credentials in your configuration file.  You can check out our [Basic Authentication ](/usage/basic-authentication.md)section for further information.

```json
cbsecurity = {

    firewall : {
        validator = "BasicAuthValidator@cbsecurity"
    }

}
```

{% hint style="success" %}
Remember that a validator can exist globally and on a per ColdBox Module level.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://coldbox-security.ortusbooks.com/security-validators/basicauth-validator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
