简体   繁体   English

春季社交Facebook登录

[英]Spring Social Facebook Login

I have follow basic Spring Social Facebook and it worked. 我遵循基本的Spring Social Facebook,它确实有效。 But it required me to login on browser. 但这需要我在浏览器上登录。

Do you have any idea how to login with an email and password that input inside the Spring program ? 您是否知道如何使用在Spring程序中输入的电子邮件和密码登录?

Diagram: 图:

Other Program (Send email and password) -> Java Spring application (Received and Auth) -> Facebook 其他程序(发送电子邮件和密码)-> Java Spring应用程序(已接收并验证)-> Facebook

Use this opensource library, provided the library to integrate with spring 使用此开源库,该库可与spring集成

https://code.google.com/p/socialauth/wiki/GettingStartedWithSpring https://code.google.com/p/socialauth/wiki/GettingStartedWithSpring

This how spring Social login works. 这就是春季社交登录的工作方式。 On click of social login, your application will redirect to social provider auth server page,where user provide his own credentials and it authenticate with soical provider and then redirects to application and a connection is prepared for this social user and a local user is mapped to this connection for further access. 单击社交登录后,您的应用程序将重定向到社交提供程序身份验证服务器页面,在该页面上,用户提供自己的凭据并通过社交提供程序进行身份验证,然后重定向到应用程序,并为此社交用户准备了连接,并将本地用户映射到此连接以供进一步访问。

There is no point of consuming email and password inside of spring application.You dont have control over social user credentials. 在Spring应用程序内部没有必要使用电子邮件和密码。您无法控制社交用户凭据。

All if you want to consume user details,you should go with spring form login. 如果您想使用所有用户详细信息,则应该使用spring表单登录。

Here is the application & blog that supports both form-login and social login(linkedin/twitter/facebook).Hope it will help you. 这是同时支持表单登录和社交登录(linkedin / twitter / facebook)的应用程序博客 。希望它会为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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