# Auth provider plugin information for plugin authors?

**URL:** https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392
**Category:** Development
**Created:** [November 20, 2018, 2:18pm UTC](https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392 "2018-11-20T14:18:17Z")
**Posts on this page:** 3
**Page:** 1

<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: [November 20, 2018, 2:18pm UTC](https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392/1 "2018-11-20T14:18:17Z")

</div>

I’m working on migrating [old oauth2 login](https://meta.discourse.org/t/discourse-chinese-localization-pack/41175) to new interface. I listed some changes in a [PR](https://github.com/discourse/discourse/pull/6635).

1. `enabled_setting` in auth\_provider.rb needs a deprecation warning.
2. Do we need a deprecation warning for `background_color` too? This was an old option.
3. Some docs for `auth_attributes`? It’s really hard to find where they go and what it expects.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 20, 2018, 2:25pm UTC](https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392/2 "2018-11-20T14:25:08Z")

</div>

Thanks @fantasticfears, those three changes look good. I’m working on some related things over the next couple of weeks so I’ll review and create some basic documentation for the interfaces.

If you can wait a couple of weeks, I should have an implementation of this which will make things a lot easier for plugins!

> [@Future Social Authentication Improvements](https://meta.discourse.org/t/future-social-authentication-improvements/94691):
>
> Discourse now has the ability to connect and disconnect different authentication providers to your account. This is good, but there is still more we can do. These are things I intended to do with my last round of improvements, but have not managed to complete before needing to move on to another project. Track ‘last used’ date for social login Log ‘connect’/‘revoke’ events in UserHistories [Provide statistics to administrators](https://meta.discourse.org/t/statistics-regarding-registrations-native-versus-external/14442/3) As @fantasticfears pointed out [here](https://meta.discourse.org/t/ability-to-connect-with-oauth-providers-when-user-is-registered/42457/3), features like this ar…

---

<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: [November 20, 2018, 2:35pm UTC](https://meta.discourse.org/t/auth-provider-plugin-information-for-plugin-authors/102392/4 "2018-11-20T14:35:03Z")

</div>

Nice, nice! Feel free to cherry pick or copy my commit 🙂 At least it’s running
