Download the PHP package wuethrich44/flarum-ext-sso without Composer
On this page you can find all versions of the php package wuethrich44/flarum-ext-sso. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wuethrich44/flarum-ext-sso
More information about wuethrich44/flarum-ext-sso
Files in wuethrich44/flarum-ext-sso
Package flarum-ext-sso
Short Description Single Sign On for Flarum
License MIT
Informations about the package flarum-ext-sso
DEPRECATED - Flarum Single Sign On
(no longer actively maintained)
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.
Installation
-
Create a random token and put it into the
api_keys
table of your Flarum database. -
Go into
sample-website
folder and copyconfig.php.dist
toconfig.php
: -
Open
config.php
with an editor of your choice and configure all settings. -
Upload the
Forum.php
class andconfig.php
to your main website and setup theForum.php
class. An example is given inindex.php
/logout.php
. -
Install and activate the extension. Fill in redirect urls for login, signup and logout.
- 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:
-
Upload the
sample-website
folder into the plugin folder (/wp-content/plugins/
) of your wordpress instance. -
Rename it to a name of your choice (e.g.
flarum-sso
). -
Copy
config.php.dist
toconfig.php
and configure all settings. -
Activate the plugin in the settings.
-
Install and activate the Flarum extension.
-
Fill in the correct urls according to your wordpress instance:
Login-Url:
http://example.com/wp-login.php?redirect_to=forum
(The
redirect_to=forum
part is important as it will redirect your users back to the forum)Logout-Url:
http://example.com/wp-login.php?action=logout
Signup-Url: Depending on which plugin you use.
- That's it!