A package specifically for Laravel, helping with Discourse’s SSO login.

A package specifically for Laravel, helping with Discourse’s SSO login.

README

Latest Version on Packagist
Software License
Total Downloads

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.

Warning

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!

Installation for Laravel 5.*

Via Composer

$ composer require jaewun/discourse-sso-laravel

After updating composer, add the ServiceProvider to the providers array in config/app.php

jaewunDiscourseSSOLaravelSSOServiceProvider::class,

You’ll also need to configure SSO to ensure it’s passing the correct information to Discourse

php artisan vendor:publish

Change log

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Source

Add a Comment

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *