mirror of https://github.com/flarum/flarum
README.md changes on config.php in SSO
parent
d7356f28cd
commit
d1beb1880a
18
readme.md
18
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 @@
|
|||
|
||||

|
||||
|
||||
```
|
||||
<?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
|
||||
|
|
Loading…
Reference in New Issue