spring-attic / spring-social

Allows you to connect your applications with SaaS providers such as Facebook and Twitter.

Home Page:http://projects.spring.io/spring-social

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NullPointerException when gettings access grant in OAuth2Template

sfussenegger opened this issue · comments

Since May 20 we are seeing NPEs trying to get an authentication token from Facebook:

java.lang.NullPointerException
    at org.springframework.social.oauth2.OAuth2Template.extractAccessGrant(OAuth2Template.java:304)
    at org.springframework.social.oauth2.OAuth2Template.postForAccessGrant(OAuth2Template.java:242)
    at org.springframework.social.oauth2.OAuth2Template.exchangeForAccess(OAuth2Template.java:144)
    at org.springframework.social.security.provider.OAuth2AuthenticationService.getAuthToken(OAuth2AuthenticationService.java:98)

While I suspect that this is a problem of Facebook's OAuth2 implementation I believe that this could be handled better by spring-social