2017 © Pedro Peláez
 

flarum-extension flarum-ext-sso

Single Sign On for Flarum

image

wuethrich44/flarum-ext-sso

Single Sign On for Flarum

  • Thursday, August 10, 2017
  • by wuethrich
  • Repository
  • 5 Watchers
  • 38 Stars
  • 567 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 1 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

DEPRECATED - Flarum Single Sign On

(no longer actively maintained), (*1)

This extension equips Flarum with Single Sign On. The workflow is based on this post. The extension is useful if you run Flarum on a subdomain but you want to use the login mechanism of your main website. A dummy main website is provided in the sample-website/ folder., (*2)

Installation

  1. Create a random token and put it into the api_keys table of your Flarum database., (*3)

  2. Go into sample-website folder and copy config.php.dist to config.php:, (*4)

    cd sample-website/
    cp config.php.dist config.php
    
  3. Open config.php with an editor of your choice and configure all settings., (*5)

  4. Upload the Forum.php class and config.php to your main website and setup the Forum.php class. An example is given in index.php / logout.php., (*6)

  5. Install and activate the extension. Fill in redirect urls for login, signup and logout., (*7)

    composer require wuethrich44/flarum-ext-sso
    
  6. Now you should able to log in with your existing users.

Wordpress

This extension comes with a Wordpress plugin which allows you to login into Wordpress and gain also access to your Flarum forum. In order to install the plugin execute the following steps:, (*8)

  1. Upload the sample-website folder into the plugin folder (/wp-content/plugins/) of your wordpress instance., (*9)

  2. Rename it to a name of your choice (e.g. flarum-sso)., (*10)

  3. Copy config.php.dist to config.php and configure all settings., (*11)

  4. Activate the plugin in the settings., (*12)

  5. Install and activate the Flarum extension., (*13)

    composer require wuethrich44/flarum-ext-sso
    
  6. Fill in the correct urls according to your wordpress instance:, (*14)

    Login-Url: http://example.com/wp-login.php?redirect_to=forum, (*15)

    (The redirect_to=forum part is important as it will redirect your users back to the forum), (*16)

    Logout-Url: http://example.com/wp-login.php?action=logout, (*17)

    Signup-Url: Depending on which plugin you use., (*18)

  7. That's it!, (*19)

The Versions

10/08 2017

dev-master

9999999-dev

Single Sign On for Flarum

  Sources   Download

MIT

The Requires

 

by Fabian Wüthrich

authentication

10/08 2017

v1.1.2

1.1.2.0

Single Sign On for Flarum

  Sources   Download

MIT

The Requires

 

by Fabian Wüthrich

authentication

09/07 2017

v1.1.1

1.1.1.0

Single Sign On for Flarum

  Sources   Download

MIT

The Requires

 

by Fabian Wüthrich

authentication

29/03 2017

v1.1.0

1.1.0.0

Single Sign On for Flarum

  Sources   Download

MIT

The Requires

 

by Fabian Wüthrich

authentication

11/03 2017

v1.0.1

1.0.1.0

Single Sign On for Flarum

  Sources   Download

MIT

The Requires

 

by Fabian Wüthrich

authentication

01/03 2017

v1.0.0

1.0.0.0

Single Sign On for Flarum

  Sources   Download

MIT

The Requires

 

by Fabian Wüthrich

authentication