- The project uses
Spring Security 5
(MVC only, webflux version will roll into next edition) to provide a fashioned JWT based Authentication framework based on Spring Boot2 and Sprint Security 5 with MVC- JWT based on
Filter
, as a standard methodology, to handle the authentication. - JWT integrated with social platform such as facebook, twitter, wechat is also provided.
UserDetailsService
is implemented bySpring Data Jpa
andHibernate
. .
- JWT based on
- The project is now written in Java but should use kotlin - kotlin version will replace Java soon.
- It has some dependencies such as
wechat-client-mini-kboot2
to handle special/variant 3rd party OAuth2 authentications. - The project has removed dependency on old
spring-social
project. - TODO: versions updates.
run mysql/schema.sql
DROP USER 'spring'@'localhost';
DROP USER 'spring'@'%';
CREATE USER 'spring'@'localhost' IDENTIFIED BY 'spring';
CREATE USER 'spring'@'%' IDENTIFIED BY 'spring';
GRANT ALL ON touchmars_spring_template.* TO 'spring'@'localhost';
GRANT ALL ON touchmars_spring_template.* TO 'spring'@'%';
FLUSH PRIVILEGES;
commit;
mvn clean install
or
mvn clean install deploy -DperformRelease=true -Parchetype && update-github
update-github
is self-defined command.
- This is a framework and not an application.
- If you have to run it as a demo, release/enable the files
Application.java
andapplication.yml
, then runmvn spring-boot:run
.
- Please disable the
Application.java
andapplication.yml
files - they are actually not supposed to be enabled at all.- Simply add
.bak
to the file names.
- Simply add
- Use this framework as a dependency.