# Authentication

Kafbat UI supports multiple authentication methods to secure access to the web interface and to connect to secured Kafka clusters.

## For the UI

Configure how users authenticate to access the Kafbat UI web interface:

* [Basic Authentication](/configuration/authentication/for-the-ui/basic-authentication.md) - Simple username/password authentication
* [OAuth2](/configuration/authentication/for-the-ui/oauth2.md) - OAuth 2.0 authentication with various providers (Google, GitHub, Azure, Cognito, Okta, Keycloak)
* [LDAP / Active Directory](/configuration/authentication/for-the-ui/ldap-active-directory.md) - Enterprise directory integration

## For Kafka

Configure authentication between Kafbat UI and your Kafka clusters:

* [AWS IAM](/configuration/authentication/for-kafka/aws-iam.md) - AWS IAM authentication for MSK
* [SASL\_SCRAM](/configuration/authentication/for-kafka/sasl_scram.md) - SASL/SCRAM authentication


---

# 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://ui.docs.kafbat.io/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.
