pdefreitas / Laravel-VanillaSSO

A way to connect your Laravel application into Vanilla Forum via jsConnect.
GNU General Public License v2.0
7 stars 7 forks source link

Which hash algorithm to use in the Vanilla SSO settings? #1

Closed ChrisTerBeke closed 10 years ago

ChrisTerBeke commented 10 years ago

Hello,

Which Hash algorithm should I choose in the Vanilla dashboard JSconnect settings page? Right now, I always get this response: test({"error":"invalid_request","message":"The timestamp is invalid."})

ChrisTerBeke commented 10 years ago

I found the problem: in your package, you use

$ClientID = Config::get("vanillasso.client_id");
$Secret = Config::get("vanillasso.secret");

This would work when you use:

$ClientID = Config::get("vanillasso::vanillasso.client_id");
$Secret = Config::get("vanillasso::vanillasso.secret");

Laravel needs a package defined when looking for the configuration file.

ChrisTerBeke commented 10 years ago

mm, now getting this: test({"error":"access_denied","message":"Signature invalid."})

ChrisTerBeke commented 10 years ago

found it, hash should be MD5. Could you add this to your documentation?

pdefreitas commented 10 years ago

Hello.

This plugin works with md5 and sha1. I will add this to the documentation.

Thank you for reporting this!