# 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:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Lopes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_lopes/32/374589_2.png) [@Daniel\_Lopes](https://meta.discourse.org/u/Daniel_Lopes)\
**Post date:** [October 5, 2018, 7:04pm UTC](https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841/1 "2018-10-05T19:04:31Z")

</div>

Hi everyone,

I’m working on a project to integrate our main product ([https://knowyourcompany.com/](https://knowyourcompany.com/)) into our community ([https://thewatercooler.io/](https://thewatercooler.io/)) and struggling a bit to find the best approach.

Our community is invite only and we want to keep it this way, but we also want to allow a user that has an specific role in our main app to be able to bypass the invite process and sign-in into our Discourse. So I can’t use SSO and the normal OAuth flow won’t work for signups.

I turned our main app into an OAuth provider and wrote the plugin to let people sign-in with their credentials from the main app and seems to work. Problem now is to figure out what to do with the signup flow. I’m looking into the API and going to try to keep both DBs in sync.

Has anyone tried something like this before? Is the API flow + OAuth the best approach?

Thanks!

---

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