Giter Site home page Giter Site logo

spring-auth's Introduction

spring-auth

Spring boot template with facebook OAuth login (manual flow)

This project template implements a facebook login flow using based on

https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow

using OAuth and not the Facebook javascript API (login button).

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

  • APP_ID: Your fb app id
  • APP_SECRET: Your fb app secret

Open https://localhost:8445/index.html to login to login

Stack:

  • Spring Boot
  • jQuery (just proof-of-concept)

Login flow simplified:

  1. Login using dialog
  2. Response from dialog contains code and state (csrf)
  3. GET access_token from client_secret,client_id and redirect_url
  4. GET app access_token from client_id and client_secret
  5. GET inspect access_token from access_token and app_id
  6. Verify inspect access_token against client_id and validity

CSRF verification is not added.

spring-auth's People

Contributors

knalum avatar

Watchers

Satish Puli avatar

Forkers

iyoungman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.