0

I am building a spring boot java resource server as a backend for an iOS app. The iOS App authenticates users using federated login with Facebook and passes access token for resource server to create an internal user. linked to the facebook profile.

Any documentation I came across discusses how to use spring security to authenticate/authorize users using login form, but I am just trying to parse/validate the access token already given by FB. How can I do this? Google offers a library to easily parse access token and extract user's information, but I can't find a counterpart library for facebook.

  • 1
    I don't think I've got the whole picture yet. Why do you need to parse the access token? Typically, the purpose of an access token is to give you access to FB's API. You can use the access token to query FB's API for the data you need. – jzheaux Jan 04 '21 at 20:51
  • At the end of the day, we'd like to offer users to login with their facebook id and retrieve the existing user if the email, or user id matches. – keab.kcats Jan 04 '21 at 22:55
  • You can get these information from FB API using the token from user. – KHanusova Jun 03 '22 at 11:45

0 Answers0