使用Spring Security对Facebook进行身份验证 [英] Authenticating user with Facebook using Spring Security

查看:325
本文介绍了使用Spring Security对Facebook进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Spring Security 3.0.x,我希望我的用户使用OpenId和Facebook进行身份验证。目前我的OpenId部分正在运行,但我对用户如何使用Facebook登录感到困惑。我已经阅读了有关Spring安全性的 OAuth ,但是我不记得,它只对访问资源有好处。示例应用程序使用用户名和密码进行身份验证。

I'm using Spring Security 3.0.x and I'd like my users to authenticate using OpenId and Facebook. Currently I've got the OpenId-part working, but I'm confused about how users can login with Facebook. I've read about the OAuth for Spring security, but as fas as I undestand, it is only good for accessing resources. The example applications authenticate with username and password.

所以我的问题是,如何使用Spring安全性对Facebook用户进行身份验证?

So my question is, how do I authenticate users with Facebook using Spring security?

推荐答案

Spring Security没有解决这个问题(截至目前)。查看 Spring Social ,它旨在将您的应用程序连接到Facebook,Twitter等。还可以查看这篇博文,他们整合了Spring Social和Spring Security。

Spring Security doesn't address this (as of yet). Check out Spring Social which is designed to connect your app to Facebook, Twitter, etc. Also check out this blog post, where they have integrated Spring Social and Spring Security.

这篇关于使用Spring Security对Facebook进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆