Óscar
Óscar

Reputation: 730

Which Java library should I use for authentication through Facebook, Gmail, local auth, etc.?

Which Java library do you recommend to implement authentication in a Java web app (just servlets & JSPs)? We want to offer the most common authentication providers (Facebook, Yahoo, Gmail, etc.) and also local account registration.

I have found SocialAuth but it looks pretty new and I don't know if there are better alternatives. In addition, it looks like SocialAuth will request access to users contacts which I don't need and could annoy our users.

Thanks!

Upvotes: 8

Views: 1581

Answers (3)

helloworld
helloworld

Reputation: 2311

You can checkout the newer version of SocialAuth, u can set the level of permissions to be asked from the users.

Upvotes: 2

Óscar
Óscar

Reputation: 730

I ended up using openid4java to integrate Google and Yahoo OpenId, and plain HttpClient calls to integrate OAuth based services (Facebook and Hotmail).

Upvotes: 0

Mike
Mike

Reputation: 8963

Spring Security is a good starting point to get a flexible authentication system in your project.

http://static.springsource.org/spring-security/site/

There is a spring-security-facebook plugin that will integrate facebook auth.

http://code.google.com/p/spring-security-facebook/

I'm not sure about the others specifically. If you are talking about OpenID then spring security supports that.

Upvotes: 0

Related Questions