# Custom oAuth setup

**URL:** <https://forums.rocket.chat/t/custom-oauth-setup/3098>\
**Category:** Community Support\
**Created:** [February 5, 2019, 3:29am UTC](https://forums.rocket.chat/t/custom-oauth-setup/3098 "2019-02-05T03:29:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![garyholeman](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/garyholeman/32/853_2.png) [@garyholeman](https://forums.rocket.chat/u/garyholeman)\
**Post date:** [February 5, 2019, 3:29am UTC](https://forums.rocket.chat/t/custom-oauth-setup/3098/1 "2019-02-05T03:29:45Z")

</div>

I’m trying to have RC login authenticate to another application I control that has a REST API that includes a /Auth/login API. I’ve been able to login to the application using Postman. Very simple. I’m having trouble understanding how to setup a custom OAuth for my RC server so that my RC users are authenticating using their credentials from the other application. Does someone have a sample custom oAuth setup that is similar that I could look at the settings to understand how to setup mine?

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [February 5, 2019, 6:57am UTC](https://forums.rocket.chat/t/custom-oauth-setup/3098/2 "2019-02-05T06:57:54Z")

</div>

Are you looking for Rocket.Chat it’s self to be the identity provider and to login from your app using Rocket.Chat?

Or are you looking to login to Rocket.Chat using your apps users? Your app being the identity provider

---

<div class="post-metadata">

**Author:** ![garyholeman](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/garyholeman/32/853_2.png) [@garyholeman](https://forums.rocket.chat/u/garyholeman)\
**Post date:** [February 5, 2019, 2:14pm UTC](https://forums.rocket.chat/t/custom-oauth-setup/3098/3 "2019-02-05T14:14:51Z")

</div>

Thank you, Aaron, I’m wanting my app to be the identity provider for Rocket.Chat.

---

<div class="post-metadata">

**Author:** ![garyholeman](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/garyholeman/32/853_2.png) [@garyholeman](https://forums.rocket.chat/u/garyholeman)\
**Post date:** [February 14, 2019, 3:10am UTC](https://forums.rocket.chat/t/custom-oauth-setup/3098/4 "2019-02-14T03:10:50Z")

</div>

Aaron, do you have any advice on this?

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [February 14, 2019, 5:04am UTC](https://forums.rocket.chat/t/custom-oauth-setup/3098/5 "2019-02-14T05:04:01Z")

</div>

If your app is the identity provider I would recommend implementing some sort of oauth server package.

Otherwise you will be guessing and have a long battle ahead
