NullPointerException when gettings access grant in OAuth2Template
sfussenegger opened this issue · comments
Stefan Fussenegger commented
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