Go to file
romanzpolski 3c35412e66 commit from php storm git client / remove workbench, update composer.json in root 2017-09-19 13:25:57 +01:00
assets New skeleton architecture 2015-04-25 22:57:04 +09:30
scripts Fix vagrant provisioning 2017-03-03 09:02:08 +02:00
sso SSO targetUrl setup 2017-09-18 18:49:52 +01:00
storage Add temporary file storage dir 2015-10-14 15:50:04 +10:30
.editorconfig Remove redundant options 2015-08-31 22:55:17 +03:00
.gitattributes Add .gitattributes 2015-08-13 13:08:16 +09:30
.gitignore Ignore composer lock file for now 2015-10-19 15:02:02 +02:00
.htaccess Update .htaccess 2017-04-10 12:41:46 +02:00
CONTRIBUTING.md Update docs for beta 3 2015-11-03 09:58:46 +10:30
LICENSE Update year 2017-01-01 22:50:11 +01:00
Procfile Remove PPM for now 2016-10-18 22:12:09 +10:30
Vagrantfile Fix vagrant provisioning 2017-03-03 09:02:08 +02:00
admin.php Split up front controllers again 2015-10-07 23:09:57 +10:30
api.php Split up front controllers again 2015-10-07 23:09:57 +10:30
composer.json commit from php storm git client / remove workbench, update composer.json in root 2017-09-19 13:25:57 +01:00
flarum Split up front controllers again 2015-10-07 23:09:57 +10:30
index.php Split up front controllers again 2015-10-07 23:09:57 +10:30
launch.php launch.php addition and readme.md changes 2017-09-16 01:20:14 +01:00
readme.md Steps numbering changed 2017-09-18 18:12:58 +01:00

readme.md

How to launch with one command?

  • Step 1: composer install
  • Step 2: php -S localhost:9999 launch.php

launch.php is a custom script that gives you a reproducable development environment.

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 3: Head to here and enable Single Sign On extension.
  • Step 4: Fill in the details as shown in the image below.
  • Step 5: Now, navigate to sso folder and run php -S localhost:8888
  • Step 6: Access the sample SSO website on localhost:8888

<?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