简体   繁体   中英

Facebook login with Spring Security

I have successfully logged in with Facebook Javascript SDK and in server side I have successfully loaded facebook User with http://restfb.com/ , but how can I authenticate my user via Spring Security? Since my facebook user doesn't have username and password, I cannot user regular authentication method, so how can I authenticate this facebook user in my app?

I don't know much of the actual implementation details, but I would have thought you want to use OAuth using your spring application as the consumer and facebook as the service provider. http://static.springsource.org/spring-security/oauth/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM