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.zipReadme
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:
- Install wp-discourse;
- Go to Settings -> Discourse and fill
Discourse URLandSSO Secret Key; - Use the
[discourse_sso]shortcode anywhere you'd want the auth link to be shown. The default anchor isLog in with Discourse - 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:
- If you're already logged in into WP, then the Discourse profile will be added;
- 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