|
| 1 | +# SPINEN's Discourse SSO for Laravel |
| 2 | + |
| 3 | +[](https://packagist.org/packages/spinen/laravel-discourse-sso) |
| 4 | +[](https://packagist.org/packages/spinen/laravel-discourse-sso) |
| 5 | +[](https://packagist.org/packages/spinen/laravel-discourse-sso) |
| 6 | +[](https://www.versioneye.com/php/spinen:laravel-discourse-sso/0.1.1) |
| 7 | +[](https://packagist.org/packages/spinen/laravel-discourse-sso) |
| 8 | + |
| 9 | +[Discourse](https://www.discourse.org) is a great online forum software that supports Single Sign On ([SSO](https://meta.discourse.org/t/official-single-sign-on-for-discourse/13045)). There is a great PHP library that handles all of the heavy lifting to make the SSO work called [cviebrock/discourse-php](https://github.com/cviebrock/discourse-php), which this package uses. This package is loosely based on the work done by [jaewun/discourse-sso-laravel](https://github.com/jaewun/discourse-sso-laravel). |
| 10 | + |
| 11 | +## Build Status |
| 12 | + |
| 13 | +| Branch | Status | Coverage | Code Quality | |
| 14 | +| ------ | :----: | :------: | :----------: | |
| 15 | +| Develop | [](https://travis-ci.org/spinen/laravel-discourse-sso) | [](https://coveralls.io/github/spinen/laravel-discourse-sso?branch=develop) | [](https://scrutinizer-ci.com/g/spinen/laravel-discourse-sso/?branch=develop) | |
| 16 | +| Master | [](https://travis-ci.org/spinen/laravel-discourse-sso) | [](https://coveralls.io/github/spinen/laravel-discourse-sso?branch=master) | [](https://scrutinizer-ci.com/g/spinen/laravel-discourse-sso/?branch=master) | |
| 17 | + |
| 18 | +## Prerequisite |
| 19 | + |
| 20 | +As side from Laravel >= 5.1, there is 1 package that is required. |
| 21 | + |
| 22 | +* ["cviebrock/discourse-php": "^0.9.3",](https://github.com/briannesbitt/Carbon) |
| 23 | + |
| 24 | +## Install |
| 25 | + |
| 26 | +Install Discourse SSO for Laravel: |
| 27 | + |
| 28 | +```bash |
| 29 | + $ composer require spinen/laravel-discourse-sso |
| 30 | +``` |
| 31 | + |
| 32 | +### For >= Laravel 5.5, you are done with the Install |
| 33 | + |
| 34 | +The package uses the auto registration feature |
| 35 | + |
| 36 | +### For < Laravel 5.5, you have to register the Service Provider |
| 37 | + |
| 38 | +Add the Service Provider to `config/app.php`: |
| 39 | + |
| 40 | +```php |
| 41 | + 'providers' => [ |
| 42 | + // ... |
| 43 | + Spinen\Discourse\SsoServiceProvider::class, |
| 44 | + ]; |
| 45 | +``` |
| 46 | + |
| 47 | +## Configuration |
| 48 | + |
| 49 | +All of the configuration values are stored in under a `discourse` key in `config/services.php`. Here is the array to add... |
| 50 | + |
| 51 | +TODO: Put all of the config stuff here |
| 52 | + |
| 53 | +## Using the package |
| 54 | + |
| 55 | +TODO: Fill this in |
0 commit comments