• Extensions
  • PHP and WordPress Single Sign On (SSO) with optional JWT Addon

maicol07 I have implemented this extension today on a Wordpress site that has a Flarum instance on the same domain but within a subfolder, so the main site is at www.example.com and the Flarum instance is at www.example.com/forum

I have also enabled the options to remove register and login links from Flarum, excellent addition, thanks.

When logging into my main site, via Wordpress login, the user is successfully logged into Flarum. Awesome.

Logging out from Flarum does successfully direct the user to the logout screen in Wordpress, where presently there is a confirmation "Do you really want to log out" which I am hoping it's possible to code around and make the log out just happen without the confirmation.

However, I am finding, as @lubos-h reports, that logging out through Wordpress does not log the user out of Flarum.

    SportDevAdam thank you for using the extension.
    That issue is already confirmed and it will be fixed in next major release (maybe end of the month, but ETA may change)

      6 days later

      @maicol07 Can I suggest another feature that would be a good addition? When a Wordpress user is deleted by admin, the corresponding Flarum user should also be deleted.

        5 days later

        Thanks for the long waited extension. I wonder if it's possible to connect several flarum instances with SSO? One on the root domain and one in a subdomain.

          Solaris Unfortunately, this extension works only with an external user management, for example a custom one (written in PHP) or a Wordpress instance. The feature you are describing might be implemented in the future, but currently it's not planned. Added to the tracker: https://bugs.maicol07.it/issue/FLARUM_EXT_SSO-3

          Hello. I do not understand English well and cannot understand the documentation. Could you, if not difficult, record a video for Laravel authorization. I would be very grateful!

            Vasillisk unfortunately, I don't know how to use Laravel. Maybe a user that has already done it can record a video for you!

            13 days later

            Hello @maicol07 , just trying to update to flarum beta 12, but seem that the SSO extension is blocking the update:
            when running command: composer why-not flarum/core v0.1.0-beta.12
            result: maicol07/flarum-ext-sso 1.4.5 requires flarum/core (>=0.1.0-beta.10 <0.1.0-beta.12)

              lubos-h yes, I need to update the extension. Next major update will add support for beta12.
              Sorry but at the moment to use the extension you need to stay on beta11 and wait for the update (no ETA at the moment...)

              lubos-h it seems that the extension is compatible with beta12. I'm updating composer.json to allow installations on beta12

              Release 1.4.6

              Changelog

              • Added beta12 support

              Updating

              Run composer update command or use Bazaar

              Links


              Also now the repo is no more a fork of the repo of the previous mantainer but a standalone one, allowing more flexibility in the future (new features planned??)
              Stay tuned!

                6 days later

                Just wondering: Am I supposed to be able to log in via standard login mechanism or if using the SSO do I have to always log in via SSO (even if I want to log in as administrator). I am trying to directly log in as Flarum admin user who is not part of the SSO ecosystem, and the login dialog freezes, I get only the rotating "wait" icon next to "Log in" text inside the button.
                There are some JavaScript errors in the console, all of them exceptions Uncaught TypeError: this.identification is not a function thrown in LogInModal.js. I would suppose that pressing the "Log in" button would generate some kind of HTTP request, but nothing seems to be sent to the server.
                My environment is rather exotic, WAMP with SSL support via self-signed certificate.
                Thanks for suggestions!

                  8 days later

                  maicol07 hi can you help me? I have try three times is error。 。。。 the forum.php class and
                  config.php upload to wordpress ???? but i can't open my wp domain/forum.php is all blank .. why???

                    jprk what version of the extension are you using?

                    At the moment, you can only login through SSO. I'll see if I can add this option in the next major update

                    • jprk replied to this.

                      sadboy please explain everything. You should give me more details and explain everything better

                        maicol07 I only don,t understand two things .

                        1. my main site is my wordpress domain?
                        2. "Upload the Forum.php class and config.php to your main website " —— is upload them to my wordpress ? and how setup forum.php ?? i up the forum.php ... but i open my wordpress domain/forum.php is blank...