# Authenticate customers

Client authentication using OAuth 2.0 allows agents in Chat Desk to authenticate their customers before they perform certain operations to protect them from fraudulent activities.

{% hint style="info" %}
Clickatell will assist you in setting up your desired Identity Providers via the Clickatell Portal.&#x20;
{% endhint %}

## Use the OAuth extension

1. Click the *Extension* (puzzle) icon.&#x20;
2. In the panel on the right, select the OAuth configuration (IDP) you want the customer to use to authenticate themself.&#x20;

{% hint style="success" %}
All enabled Identity Providers (IDPs) [set up in the Clickatell Portal ](https://clickatell.gitbook.io/embedded-client-authentication-user-guide/configure-and-update-an-identity-provider-idp)will automatically pull through to this list in Chat Desk.&#x20;
{% endhint %}

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/GpzGsIV2SUwjpn9plvU7/image.png" alt=""><figcaption></figcaption></figure>

3. An authentication request is sent to the customer as a URL. Clicking this link opens the login (authentication) page of the selected IDP.&#x20;
4. Once the customer enters their details and is authenticated successfully, they are directed back to the channel they were engaging on.

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/ACdGyCuwbMdzHddl8jQS/image.png" alt=""><figcaption></figcaption></figure>

5. The outcome of the authentication is shown in the chat window.

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/7pQgtNzsr10jT8FjAOyh/image.png" alt=""><figcaption></figcaption></figure>
