• Extensions
  • Flarum WordPress Authentification Extension

Flarum WordPress Authentification

Allow users to log in with their WordPress site accounts.

Old package is no longer maintained and has been archived. Instead, meet NEW one.

Installation

composer require krombox/flarum-ext-oauth-wordpress

Prerequirements

1) WordPress >= 4.5
2) WP OAuth Server plugin installed and configured

Config

Enable an extension in the extensions list and fill in the settings form.

Links

krombox/flarum-ext-oauth-wordpress
https://packagist.org/packages/krombox/flarum-ext-oauth-wordpress

Donate

If you find this extension useful you can make a donate

    krombox Holly guacamole! Need to get my hands on it ASAP! Thanks @krombox! Tested with Beta 7 I suppose? Any know conflicts with other extenssions?

      Kyrne Awesomeness! What WP version did you test it on?

      What about the existing flarum users who also have Wordpress account? Will they will be able to login using this extension? I know that other SSO extension is having a problem when your existing forum users try to log into forum via Wordpress (they simply can't login) is this problem still present in this extension?

        What about the existing flarum users who also have Wordpress account? Will they will be able to login using this extension? I know that other SSO extension is having a problem when your existing forum users try to log into forum via Wordpress (they simply can't login) is this problem still present in this extension?

        DKornyukhov this extension have been made special to prevent this. First time i've tried that extension too and was not fully satisfied with the result. Not sure what @Kyrne mean, but this should solve the problem with existing users. It should work same way as GitHub or Facebook oauth and be able to login users even if they presented in Flarum DB.

          7 days later

          krombox huge thank you to @krombox for this terrific extension! It works just as expected. My new and existing forum users can now easily login with Wordpress and it works like a charm. ???

          FYI … it's capital_P_dangit.

          I've not yet used the extension, but excited to do so. Thank you! I don't know if there is the option, but it would be nice to replace the WordPress in the login button with the site title and favicon of the OAuth server, so the login is not confused with utilizing WordPress.com.

          Thanks for developing this!

            UaMV nice to replace the WordPress in the login button with the site title and favicon of the OAuth server

            That's actually a pretty neat idea! Do you think it's possible, @krombox? ?

            This is a really nice extension!

            But please capitalise the 'Press' in WordPress on that button.

            krombox changed the title to Flarum WordPress Authentification Extension .

            Its funny what people 'really' care /complain about. Not functionality, no, they only see the decals.
            Thank you for your contribution to Flarum.

            Its understandably frustrating that people only see a logo that is, although properly spelled, noticeably different than the logo they are used to seeing. If people knew that I sometimes wore socks that didn't match, I wonder if I would get more comments as well?

            UaMVFYI … it's capital_P_dangit. - Changed it on thread. Will do on Login button next release.

            UaMV it would be nice to replace the WordPress in the login button with the site title and favicon of the OAuth server - There already exists ability to set any text you would like e.g. Login with My Site.
            Not sure what do you mean exactly by favicon of the oauth server, but i think it might be possible to add additional input for image logo url and replace wordpress icon with that

              krombox FYI … it'scapital_P_dangit. - Changed it on thread. Will do on Login button next release.

              I've never seen software so compulsively pedantic in correcting its name. That's fantastic.

                krombox There already exists ability to set any text you would like e.g. Login with My Site.

                Nice! Good to hear that is possible. I've not actually tested the plugin … was just responding to your OP.

                krombox favicon of the oauth server

                I was thinking about the possibility of automatically pulling the favicon from the site … the way in which browsers pull it for the tab. The ability to set a logo would also work.

                jordanjay29 Right? It's hilarious … and so great.

                2 months later
                19 days later

                Thanks for fantastic plugin!
                but I've got a 404 error when clicking the login button.
                the address of the popup window is like below.

                https://{flarum.domain}/auth/{wp.domain}/oauth/authorize?state=XXX&scope=&response_type=code&approval_prompt=auto&client_id=XXX&redirect_uri={flarum.domain}%2Fauth%2Fwordpress

                WP Oauth servcer is enabled.
                I use Nginx, so it might cause this error.

                is there any solution to this?