# User Authentication

As we said previously, AgentLabs allows you to manage and authenticate your users.

## Authentication methods

AgentLabs lets you configure the authentication methods you want to register and sign in your users.

You can configure basic email methods and different oauth2 providers.

The methods you configure will be available to your users.

You can configure them from your [admin console](https://console.agentlabs.dev/).

<figure><img src="/files/URa6gFxNhVE4Tl0edMPz" alt=""><figcaption><p>Configuring authentication methods</p></figcaption></figure>

{% hint style="info" %}
The current auth methods set is limited but we'll rollout more methods as we go :rocket:
{% endhint %}

## Authentication request&#x20;

Once you've configured your auth methods, you can request authentication from your users simply using our SDK.

{% tabs %}
{% tab title="Python" %}

```python
agent.request_login(
   conversation_id="your-conversation",
   text="Please login to access this feature"
)
```

{% endtab %}

{% tab title="TypeScript" %}

```python
agent.requestLogin({
   conversationId: "your-conversation",
   text: "Please login to access this feature"
})
```

{% endtab %}
{% endtabs %}

\
The snippet above will trigger the following in-chat authentication component.

<figure><img src="/files/2MirTASp0DFWDzgT2qx3" alt=""><figcaption><p>Asking for in-chat authentication</p></figcaption></figure>

## Managing your users

Then, you can manage all your application users from your admin console.\ <br>

<figure><img src="/files/JIPk8sZ3mKRWbSAr881q" alt=""><figcaption><p>User management dashboard</p></figcaption></figure>


---

# 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://docs.agentlabs.dev/core-concepts/user-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.
