> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/deployment/configuration/authentication.md).

# Authentication

{% hint style="info" %}
Authentication is configured in HQ.
{% endhint %}

Users can authenticate in two ways: Basic authentication or SSO/SAML. You can also designate specific users as admin accounts.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><strong>Admin Account</strong></td><td>Learn how to configure admin accounts in Lenses.</td><td></td><td><a href="/pages/TjbnXakJXSzMdxqAeojj">/pages/TjbnXakJXSzMdxqAeojj</a></td><td><a href="/files/ocimRF6qcsICH5yyXT0O">/files/ocimRF6qcsICH5yyXT0O</a></td></tr><tr><td><strong>Basic Authentication</strong></td><td>Learn how to configure Lenses with Basic Auth.</td><td></td><td><a href="/pages/myJdxxFBrgluLJQYbqD0">/pages/myJdxxFBrgluLJQYbqD0</a></td><td><a href="/files/QNwVHEx1qhk4mZcZs2uM">/files/QNwVHEx1qhk4mZcZs2uM</a></td></tr><tr><td><strong>SSO &#x26; SAML</strong></td><td>Learn how to configure Lenses with SSO &#x26; SAML.</td><td></td><td><a href="/pages/pfsTpfjXwLGl6NTxKUSa">/pages/pfsTpfjXwLGl6NTxKUSa</a></td><td><a href="/files/Kvy86sip1q309R88DnSy">/files/Kvy86sip1q309R88DnSy</a></td></tr><tr><td><strong>OAuth 2.1</strong></td><td>Learn how to configure Lenses with OAuth 2.1</td><td></td><td></td><td><a href="/files/IJfhrHL1qaoWpSZi3qMH">/files/IJfhrHL1qaoWpSZi3qMH</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.lenses.io/latest/deployment/configuration/authentication.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.
