# Discourse Wordpress plugin SSO wishlist

**URL:** <https://meta.discourse.org/t/discourse-wordpress-plugin-sso-wishlist/57797>\
**Category:** WordPress\
**Created:** [2017 年 2 月 22 日午後 4:46 UTC](https://meta.discourse.org/t/discourse-wordpress-plugin-sso-wishlist/57797 "2017-02-22T16:46:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)\
**Post date:** [2017 年 2 月 22 日午後 4:46 UTC](https://meta.discourse.org/t/discourse-wordpress-plugin-sso-wishlist/57797/1 "2017-02-22T16:46:35Z")

</div>

Our aim is to use Wordpress as a repository for static content such as photo and file libraries, and photo essays. We have a load of old static content which we wish to host on the Wordpress site, and our “For Sale/Wanted” section is on the Wordpress site (using AWPCP). To that end, using Discourse as our SSO provider is just what we were looking for… however.

**Logging:**  
The functionality just kind of happens. How difficult would it be to add a Discourse log similar to admin/logs/staff\_action\_logs which tracked Login and SSO events?  
I’m thinking of something along the lines of a log with columns for  
Username:  
Action: Created WP account, Accessed WP account, Failed SSO request  
When:  
Details: Error message (in the case of a failed SSO access)

**Error Messages:**  
When a user already has a preexisting account on WP, but the passwords aren’t identical if they try to use the SSO to login the error message is:

> The email address supplied by Discourse does not match your account. Probably a user other than yourself is logged into Discourse on your device. Please try visiting the Discourse forum and logging that user out. You should then be able to sync your account with Discourse.

This was a user with identical email and username, but different passwords.

**Access control:**  
Could the Plugin restrict account creation to only discourse users? Despite having the Akismet plugin on our WP we’re averaging something like 50 account creations per day.  
At the moment the plugin is open to any discourse user. It would be nice if we could limit that, either by Trust Level, or by group membership.  
With group membership throttling you could do something like only members of the group WP\_Subscriber can use the SSO. Taking it to the next level you could map groups to roles in WP (i.e. WP\_Subscriber\>\>Subscriber, WP\_Contributor\>Contributor)

---

_[View the full topic](https://meta.discourse.org/t/discourse-wordpress-plugin-sso-wishlist/57797)._
