User Authentication with Facebook with Spring Security

I am using Spring Security 3.0.x and I want my users to authenticate using OpenId and Facebook. I am currently working with the OpenId part, but I am confused about how users can connect to Facebook. I read about OAuth for Spring Security, but as I understand it, this is only useful for accessing resources. Sample applications are authenticated using a username and password.

So my question is: how do I authenticate users on Facebook using Spring Security?

+6
source share
3 answers

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

+5
source

I created a new project called spring-security-social for Facebook that provides a spring- based security-OAuth authentication filter. Unlike spring-security-facebook, it is actively supported by the development of acoveo software and builds on the new version of spring-security-oauth.

+5
source

You can also use https://github.com/pac4j/spring-security-pac4j , which supports OAuth (Facebook, Twitter, Google ...), CAS, SAML, OpenID (Connect) and GAE. See Demo: https://github.com/pac4j/spring-security-pac4j-demo

+3
source

Source: https://habr.com/ru/post/886584/


All Articles