# Ability to connect with OAuth providers when user is registered?

**URL:** <https://meta.discourse.org/t/ability-to-connect-with-oauth-providers-when-user-is-registered/42457>\
**Category:** Feature\
**Created:** [Avril 12, 2016, 4:00 UTC](https://meta.discourse.org/t/ability-to-connect-with-oauth-providers-when-user-is-registered/42457 "2016-04-12T16:00:23Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Post date:** [Avril 22, 2016, 3:42 UTC](https://meta.discourse.org/t/ability-to-connect-with-oauth-providers-when-user-is-registered/42457/7 "2016-04-22T15:42:30Z")

</div>

Cool. It’s exactly what I want. But Patreon is kind of subset of my application. Could you elaborate the actual usage behind this?

My intention is to build a somewhat integration with Wechat public platform which is quite popular. This platform is too Chinese now so I’ll describe the scenario briefly.

Wechat user can subscribe a `Subscription Account` (SA later). Wechat allows SA provides tabs which redirects to a url.

 ![](https://global.discourse-cdn.com/meta/original/3X/9/6/96a141c7f0cd410325ef851035f60e986b51aa0b.jpg)

Need: Given a redirection to Discourse with OAuth information, I can determine whether this Wechat user associates with a Discourse account.

Further, it’s the same as Patreon. A wechat user can type commands and receives some notification by a proxy server.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/c/4cea391a71420fa8a058e1bf711a68a5e461a05d.png)

Need: Know whether need to re-authorized based on token expiration; disassociate.

* * *

> [@fantasticfears](#):
>
> I would say a new model can represent all those information

This is still a appealing way to implementation anyway. I could introduce fairly less interface changes in this way. Disassociates comes with a single boolean field which can show some hint for historical connection. Query only requires authenticator name & uid.

---

_[View the full topic](https://meta.discourse.org/t/ability-to-connect-with-oauth-providers-when-user-is-registered/42457)._
