amobiz / spring-social-appengine

Adds Google AppEngine-based ConnectionRepository implementation to Spring Social

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-social-appengine

Adds Google AppEngine-based ConnectionRepository implementation to Spring Social

Apply dirty workarounds on these issues:

ProviderSignInAttempt - NotSerializableException: ConnectionFactoryRegistry

The author of Spring Social, Craig Walls, states that this is a bug of Google App Engine dynamic proxies. Maybe, but, think again, what is the purpose of ProviderSignInAttempt? It is just a log indicating that there was a failed attempt to sing-in, it is just for reference. So, why save a full Connection object, and in turn, the ConnectionFactoryLocator and the UsersConnectionRepository object? Remember, these two are interfaces, anyone can provide their own implementation, god know what else will be serialized! Why not just save string information that human can read and can safely be serialized?

Persistent session managment - NotSerializableException for OAuth2Connection and OAuth1Connection

This is actually the same type of bug as above, I think.

SocialAuthenticationProvider should support multiple connections

The default behavior is some kind of odd, as I stated in the jira issue tracker.

Notes on my dirty workarounds:

Changes the references to non-serializable objects transient:

  • org.springframework.social.connect.web.ProviderSignInAttempt
  • org.springframework.social.security.SocialAuthenticationToken

Fix the if condition directly:

  • org.springframework.social.security.SocialAuthenticationProvider

Maven Configuration for Google App Engine

About

Adds Google AppEngine-based ConnectionRepository implementation to Spring Social

License:Apache License 2.0


Languages

Language:Java 100.0%