Skip to content

The original spring-boot-slingshot project that is extended with Auth2 for login using Facebook and Google

License

Notifications You must be signed in to change notification settings

chen0040/spring-boot-auth2-slingshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-auth2-slingshot

The original spring-boot-slingshot project that is extended to allow sign up and login using Auth2.

The details of Auth2 with Spring can be found at this link

Feature

  • Embedded tomcat server
  • Spring Data JPA and Spring Security for Authentication
  • Spring Data JPA configuration for database
  • Jest for ElasticSearch
  • Websocket + sockjs + stompjs
  • Bootstrap + thymeleaf
  • Language (cn + en)
  • Signup and Login using Auth2 (Login using Facebook account or Github account)
  • Developer can retrieves facebook information about the login user using class such as FacebookOAuth2ClientAuthenticationProcessingAndSavingFilter

Configuration

To use this project create a database named spring_boot_slingshot in your mysql database (make sure it is running at localhost:3306)

CREATE DATABASE spring_boot_slingshot CHARACTER SET utf8 COLLATE utf8_unicode_ci;

Note that the default username and password for the mysql is configured to

  • username: root
  • password: chen0469

If your mysql or mariadb does not use these configuration, please change the settings in src/resources/config/application-default.properties

Usage

This is just a template project that provides slingshot. Just use it as the starting point for your spring boot project development.

Note that the application will generate two accounts in the database on startup if they don't exist:

ADMIN:

  • username: admin
  • password: admin

DEMO:

  • username: demo
  • password: demo

To start the application, run the make.ps1 in powershell to build the jar bin/spring-boot-slingshot.jar and run the following command:

java -jar bin/spring-boot-slingshot.jar

Now navigate to localhost:8080 in your browser.

The main class is SpringSlingshotApplication.

About

The original spring-boot-slingshot project that is extended with Auth2 for login using Facebook and Google

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published