# Authentication with the REST API using custom OAuth

**URL:** <https://forums.rocket.chat/t/authentication-with-the-rest-api-using-custom-oauth/9755>\
**Category:** Community Support\
**Created:** [December 17, 2020, 6:09pm UTC](https://forums.rocket.chat/t/authentication-with-the-rest-api-using-custom-oauth/9755 "2020-12-17T18:09:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atuldpatil](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@atuldpatil](https://forums.rocket.chat/u/atuldpatil)\
**Post date:** [December 17, 2020, 6:09pm UTC](https://forums.rocket.chat/t/authentication-with-the-rest-api-using-custom-oauth/9755/1 "2020-12-17T18:09:52Z")

</div>

### Description

I am integrating RocketChat in my website for my users to chat with each other. And I like to register my users to RocketChat using the same credentials (they use to login to my website) via RESTApi. For that I am exploring OAuth option provided by RocketChat. As I can see RocketChat provided ways to authentication with the REST API for third party app like Facebook, Google etc:

[https://docs.rocket.chat/api/rest-api/methods/authentication](https://docs.rocket.chat/api/rest-api/methods/authentication)

But there is no custom app given here in this list.

However they have given how to configure custom application for OAuth here:

> **[OAuth](https://docs.rocket.chat/guides/administrator-guides/authentication/oauth)**
>
> Rocket.Chat supports several different ways to authenticate, beyond the basic username/password authentication. Most authentication providers require a clientID and a secret.

But not sure if and how can this be used via REST API

I am looking for how to use custom OAuth to authenticate with RocketChat via REST Api. Any sample or explanation how to use would be really great.

Thanks and anticipation.

### Server Setup Information

- Version of Rocket.Chat Server: 3.7.1
- Operating System: Linux
- Deployment Method:
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: v12.14.0
- MongoDB Version: 4.0.21
- Proxy:
- Firewalls involved:

### Any additional Information

Nil
