Spring Boot facebook login authentication using OAuth

Konstantin Nalum
Jul 20, 2017 · 1 min read

This project template implements a facebook login flow based on https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow using OAuth (not the Facebook javascript API)

git clone https://github.com/knalum/spring-auth.git

There are 3 application config parameters necessary to run the app:

* REDIRECT_URL: The url for the login page
* APP_ID: Your fb app id
* APP_SECRET: Your fb app secret

It's also necessary to create a login app on a facebook developer account. A temporary SSL certificate is added in order to serve cookies over HTTPS

Run the main method and open:

https://localhost:8445/index.html/

)

Written by

Software engineer located in Oslo

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade