README.md changes on config.php in SSO

pull/42/head
Ali Gajani 2017-09-18 18:12:10 +01:00
parent d7356f28cd
commit d1beb1880a
1 changed files with 18 additions and 0 deletions

View File

@ -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)
```
<?php
return [
// URL to your Flarum forum
'flarum_url' => '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