splix / grails-facebook-authentication-example

Grails 2.0 Spring Security Facebook Plugin Example
12 stars 14 forks source link

JSON Exception in FacebookAuthUtils of Grails plugin #3

Closed ddelponte closed 12 years ago

ddelponte commented 12 years ago

I'm running grails-2.0.4 and installed and configured the plugin as described at: http://grails.org/plugin/spring-security-facebook

Authentication fails with the following exception being thrown: Caused by JSONException: Expected a ',' or '}' at character 277

The problem is that line 36 of FacebookAuthUtils does not return valid JSON. Here's the line: String jsonData = new String(Base64.decodeBase64(signedRequestParts[1].getBytes()), 'U

The jsonData String is missing the ending "}".

Am I missing something? Should this work with Grails-2.0.4? What's the workaround?

Thanks!

Dean Del Ponte

splix commented 12 years ago

As I remember we had discussed this issue in email, right? If not - please send me original cookie value (if you can reproduce)