PHP and WordPress Single Sign On (SSO) with optional JWT Addon
gus Try making a request with this tool: https://reqbin.com/
I've used it to debug requests for my Flarum
Try adding headers, edit contents...
Make sure it's a POST request. You can get default parameters from the Flarum class
- Edited
Would https://mc-oauth.net work with your extension, @cmcjacob was wondering if it might work with an existing extension.
I need something like this for a Minecraft forum.
- Edited
After a few hours of messing around, I have finally managed to do it successfully.
@GusAragn @Rootzilla I literally had the same problem like you guys.
For me the problem was that my Wordpress Admin account was the same as Flarum account. In order to successfully sign in I had to delete all users in Flarum database which had the same email address or username.
To keep it short: WP user cant log in if there is a similar user already in Flarum database. Is that the way it's supposed to be @maicol07 ? Also, thank you for everything!
gus Sorry for the late reply.
As described here you can do it with CSS for the moment: https://discuss.flarum.org/d/366-avatars-as-extension
I will see if this can be possible and I will look into adding it to the extension
- Edited
Release 1.4.0 - Small features
This release includes a new feature that can disable login and signup buttons (or one of the two), prevents plugin activation when not set and fixes the icon in extensions list.
Changelog
Major changes are marked with
Added remove signup and login button features (thanks to @Artuu)
- If no login URL is set, SSO will be prevented
- Fixed and changed icon
Release 1.4.1 - Critical fixes
This hotfix fixes a crash at Flarum startup and moves extension settings modal construction to @fof/components
Changelog
Major changes are marked with
Critical fix to solve crash at Flarum startup
- Extension settings modal construction moved to @fof/components (thanks to @datitisev for its lib)
- Code enhancements
Updating
Run composer update
command or use Bazaar
Links
For some reasons, Packagist haven't updated the release to 1.4.1 so for all the ones that are blocked outside of flarum with the message "Something strange happened trying to load the full version of the site" you must update temporary to 'dev-master' editing composer.json. I've written to Packagist to get help with this.
Thanks for understanding!
FIXED! Now with release 1.4.3 (rolled only for update packagist) version is bumped up automatically and there shouldn't be errors anymore (until new releases...)
I wasnt able to get this to work ,,,,,
I try to login but it freeze with no error ?!
not sure about the instructions are not clear
thanks