A simple Discourse SSO integration for Laravel 5.1. The goal of this project is help users get SSO up and working on Laravel with as little hassles as possible.
This project is no longer maintained. I recommend using spinen/laravel-discourse-sso
As per Discourse's SSO Guide...
Discourse uses emails to map external users to Discourse users, and assumes that external emails are secure. IF YOU DO NOT VALIDATE EMAIL ADDRESSES BEFORE SENDING THEM TO DISCOURSE, YOUR SITE WILL BE EXTREMELY VULNERABLE!
Via Composer
$ composer require jaewun/discourse-sso-laravel
After updating composer, add the ServiceProvider to the providers array in config/app.php
jaewun\DiscourseSSOLaravel\SSOServiceProvider::class,
You'll also need to configure SSO to ensure it's passing the correct information to Discourse
php artisan vendor:publish
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email jaewun@me.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.