我应该使用哪个 Java 库通过 Facebook、Gmail、本地身份验证等进行身份验证?
您建议使用哪个 Java 库在 Java Web 应用程序(仅 servlet 和 JSP)中实现身份验证?我们希望提供最常见的身份验证提供商(Facebook、Yahoo、Gmail 等)以及本地帐户注册。
我找到了 SocialAuth,但它看起来很新,我不知道是否有更好的替代方案。此外,SocialAuth 似乎会请求访问我不需要的用户联系人,并且可能会惹恼我们的用户。
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以查看较新版本的 SocialAuth,您可以设置向用户请求的权限级别。
You can checkout the newer version of SocialAuth, u can set the level of permissions to be asked from the users.
Spring Security 是在项目中获得灵活的身份验证系统的良好起点。
http://static.springsource.org/spring-security/site/
有一个 spring-security-facebook 插件,将集成 facebook auth。
http://code.google.com/p/spring-security-facebook/
我不确定其他人具体情况。如果你谈论的是 OpenID 那么 spring security 支持它。
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.
我最终使用 openid4java 来集成 Google 和 Yahoo OpenId,并使用普通的 HttpClient 调用来集成基于 OAuth 的服务(Facebook 和 Hotmail)。
I ended up using openid4java to integrate Google and Yahoo OpenId, and plain HttpClient calls to integrate OAuth based services (Facebook and Hotmail).