WP Manifestindependent plugin directory
manifest / integrations / discourse-sso-provider-for-wp

Discourse SSO provider for WP

Use Discourse as a SSO provider for WordPress

by Ionuț Staicu · github.com/iamntz/discourse-sso-provider-for-wp

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/iamntz/discourse-sso-provider-for-wp/archive/refs/heads/master.zip

Readme

What is this?

Discourse provides an official plugin that will enable you to use a WP instance as a SSO provider. That is, you can auth to your Discourse instance using your WP creditentials.

However, sometimes, you'll want to use it the other way around: Discourse users on a WP instance. This plugins allows you exactly that.

Usage:

  1. Install wp-discourse;
  2. Go to Settings -> Discourse and fill Discourse URL and SSO Secret Key;
  3. Use the [discourse_sso] shortcode anywhere you'd want the auth link to be shown. The default anchor is Log in with Discourse
  4. Obviously, you can specify an alternative anchor like this: [discourse_sso "Auth with my awesome discourse!"]

Done!


How about syncing users?

This is fairly simple:

  1. If you're already logged in into WP, then the Discourse profile will be added;
  2. If you're not already logged in, a new user will be created.

Todo

This project is in very incipient state, but there are some things I would like to add over time:

  • [ ] Add custom settings field (in order to not rely on wp-discourse or any other plugin);
  • [ ] Add a profile field that will allow to link/unlink Discourse;

License

GPL2

Read the full README on GitHub →