Package Data | |
---|---|
Maintainer Username: | pdefreitas |
Maintainer Contact: | pdefreitas@users.noreply.github.com (pdefreitas) |
Package Create Date: | 2014-07-22 |
Package Last Update: | 2015-02-18 |
Language: | PHP |
License: | GPLv2 |
Last Refreshed: | 2024-11-23 03:10:46 |
Package Statistics | |
---|---|
Total Downloads: | 648 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 7 |
Total Watchers: | 3 |
Total Forks: | 7 |
Total Open Issues: | 2 |
This package allows you to use jsConnect of Vanilla Forums in your Laravel 4 application.
SSO (Single Sign-on) will save your time if you want to implement a forum on your Laravel 4 application.
The package is availabe on Packagist https://packagist.org/packages/pdefreitas/vanillasso
If you want to implement it into your Laravel installation:
"require": {
...
"pdefreitas/vanillasso": "dev-master",
...
},
$ composer update
'providers' => array(
...
'Pdefreitas\VanillaSSO\VanillaSSOServiceProvider',
...
),
php artisan config:publish pdefreitas/vanillasso
Here is an example of a route that you may use (app/routes.php):
Route::group(array('before' => 'auth'), function()
{
Route::get('/jsonp', 'VanillaSSOController@jsonResponse');
});
You can directly edit config\vanillasso.php or add it to your application.
The configuration file looks like this:
return array(
//The string client ID that you set up in the jsConnect settings page.
"client_id" => "",
//The string secred that you set up in the jsConnect settings page.
"secret" => ""
);
Please note that this plugin supports MD5 and SHA1 hashes from JSconnect.
Check LICENSE for more information.
I want to thank Todd Burry from Vanilla Forums. This file helped producing this package: https://github.com/vanilla/jsConnectPHP/blob/master/functions.jsconnect.php
If you use Vanilla 2.1 there is an annoying bug that you have to alter a table in order to jsConnect 1.4.1 be supported:
ALTER TABLE GDN_UserAuthenticationProvider ADD IsDefault BOOLEAN NOT NULL DEFAULT FALSE;