# Integrate OAuth with an invite only flow

**URL:** <https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841>\
**Category:** Development\
**Created:** [October 5, 2018, 7:04pm UTC](https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841 "2018-10-05T19:04:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [October 8, 2018, 3:55pm UTC](https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841/3 "2018-10-08T15:55:28Z")

</div>

Hi Daniel,

I think you are on the right track with API flow + OAuth. Whenever a new user with a specific role in Know Your Company is created you will use the Discourse API to also create/activate that user in The Watercooler which should allow them to use OAuth to login.

---

_[View the full topic](https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841)._
