Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 806 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 806 Bytes

Spring Boot with OAuth2

This is a demo Spring Boot application which uses OAuth2 for user authentication.

Current providers:

  • Google
  • Github

You can try out the app on Heroku

https://demo-spring-boot-with-oauth2.herokuapp.com (It's running on a free Heroku dyno, the first request in the last 30 minutes can take a few seconds.)

Run the app on your local machine

To run the application you must create an OAuth App on Github and set up a project in the Google API Console to obtain OAuth 2.0 credentials. Once you've got the client IDs and client secrets, you can run the app with Maven:

mvn spring-boot:run -Dspring-boot.run.arguments=--GITHUB_CLIENT_ID=<your-client-id>,--GITHUB_CLIENT_SECRET=<your-client-id>,--GOOGLE_CLIENT_ID=<your-client-id>,--GOOGLE_CLIENT_SECRET=<your-client-id>