# Login to Discourse with custom Oauth2 provider

**URL:** <https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717>\
**Category:** Feature\
**Tags:** oauth2, completed\
**Created:** [2014 年4 月 12 日 12:55 UTC](https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717 "2014-04-12T12:55:42Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

作者： ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
发布日期： [2015 年9 月 24 日 20:49 UTC](https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717/14 "2015-09-24T20:49:13Z")

</div>

I took a stab at this this week and managed to come up with a Basic OAuth2 plugin that works. The caveat is you need to have a JSON endpoint on your server so that we can obtain other information about the user.

[https://github.com/discourse/discourse-oauth2-basic](https://github.com/discourse/discourse-oauth2-basic)

I tested it with [SoundCloud](https://developers.soundcloud.com/) as a provider, and it worked great. I’d love other people to give it a whirl and let me know feedback and I’m sure as we try it out with more providers we’ll find changes and configuration options that will be required.

---

_[View the full topic](https://meta.discourse.org/t/login-to-discourse-with-custom-oauth2-provider/14717)._
