diff --git a/readme.md b/readme.md index 01e084d..93b325a 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,7 @@ ## SSO Mock * Step 1: Before you try this out, make sure you paste `6cdVzOYGVW` in the api_keys of the flarum database in MySQL. +* Step 2: Create a `config.php` file in the `sso` folder with the contents given at the very bottom. * Step 2: Head to [here](http://localhost:9999/admin#/extensions) and enable *Single Sign On* extension. * Step 3: Fill in the details as shown in the image below. * Step 3: Now, navigate to `sso` folder and run `php -S localhost:8888` @@ -16,6 +17,23 @@ ![](https://i.imgur.com/umGJsnx.png) +``` + 'http://localhost:9999', + // Domain of your main site (without http://) + 'root_domain' => 'localhost', + // Create a random key in the api_keys table of your Flarum forum + 'flarum_api_key' => '6cdVzOYGVW', + // Random token to create passwords + 'password_token' => 'NotSecureToken', + // How many days should the login be valid + 'lifetime_in_days' => 14, +]; + +``` + ___ * Last revision on 16/09/2017 * @aligajani