Spring 社交 Facebook 登录的工作示例,但 github 上的示例应用程序除外

Working example of Spring Social Facebook login except the sample applications on github

请有人分享 Spring 社交 Facebook 登录的工作示例链接,但 git 集线器上的示例应用程序是由 Spring 社交人士自己提供的。 特别是如果有任何不使用数据库的示例代码,那将是非常棒的。

Spring Social Example is the Spring 3.x implementation written by me, you just have to change Facebook/Twitter apikey, apisecret, callback url and scope as per your requirement in application.properties here.

Here is the example of how to implement social login feature using spring framework.Blog 此应用程序的精确 explination.This 应用程序支持

1) 表单登录:这是经典登录,其中会有一个接受用户名的表单,password.User 需要提交 his/her 用户详细信息。

2) 社交登录(Facebook、twitter 和 linkedin):在这里,社交用户可以使用他们的 Facebook/Twitter/linkedin 帐户登录应用程序。然后我们添加支持当前用户将他们的社交账户与他们在应用程序中的账户相关联,也称为映射社交用户与本地用户。

您可以使用下面的 github 示例,

https://github.com/pkainulainen/spring-social-examples

来源文章:https://www.petrikainulainen.net/spring-social-tutorial/


我不知道为什么你不需要 Spring 团队给出的例子。但是文章和示例代码看起来对我很有帮助。这些基于 Spring Boot 的入门指南将为您提供帮助,

https://spring.io/guides/gs/accessing-facebook/

http://projects.spring.io/spring-social-facebook/

从 github

克隆 repo
git clone https://github.com/spring-guides/gs-accessing-facebook.git