2017 © Pedro Peláez
 

library vanillasso

A way to connect your Laravel application into Vanilla Forum via jsConnect.

image

pdefreitas/vanillasso

A way to connect your Laravel application into Vanilla Forum via jsConnect.

  • Wednesday, February 18, 2015
  • by pdefreitas
  • Repository
  • 3 Watchers
  • 7 Stars
  • 642 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-VanillaSSO

This package allows you to use jsConnect of Vanilla Forums in your Laravel 4 application., (*1)

SSO (Single Sign-on) will save your time if you want to implement a forum on your Laravel 4 application., (*2)

The package is availabe on Packagist https://packagist.org/packages/pdefreitas/vanillasso, (*3)

If you want to implement it into your Laravel installation:, (*4)

1) Edit the composer.json file, (*5)

"require": {
 ...
 "pdefreitas/vanillasso": "dev-master",
 ...
},

2) Update the composer, (*6)

$ composer update, (*7)

3) Edit the providers Array() in app.php (app/config/app.php), (*8)

'providers' => array(
...
 'Pdefreitas\VanillaSSO\VanillaSSOServiceProvider',
...
),

4) Publish the vanillasso.php config file to make it accessible in app/config/packages/pdefreitas/vanillasso/vanillasso.php, (*9)

 php artisan config:publish pdefreitas/vanillasso

Routes

Here is an example of a route that you may use (app/routes.php):, (*10)

Route::group(array('before' => 'auth'), function()
{
    Route::get('/jsonp', 'VanillaSSOController@jsonResponse');
});

Configuration

You can directly edit config\vanillasso.php or add it to your application., (*11)

The configuration file looks like this:, (*12)

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., (*13)

License

Check LICENSE for more information., (*14)

Credits

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, (*15)

Hints

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:, (*16)

ALTER TABLE GDN_UserAuthenticationProvider ADD IsDefault BOOLEAN NOT NULL DEFAULT FALSE;

The Versions

18/02 2015

dev-master

9999999-dev

A way to connect your Laravel application into Vanilla Forum via jsConnect.

  Sources   Download

GPLv2

The Requires

 

by Avatar pdefreitas