This project provides you a standard auth2 server which is based on spring-authorization-server and client configuration powered by Spring Boot 2 with the ability to authenticate login and using MySQL DB as datastore.
It demonstrates Authorization Server with the authorization_code
and client_credentials
grant types. This authorization server is configured to generate JWT tokens signed with the RS256
algorithm.
Before you can build this project, you must install JDK on your machine. You can install JDK by SDK Man. e.g.
sdk install java 17.0.6-tem
Note
|
Java compatability: JDK 9 above |
This project needs a MySQL database as the backend storage. e.g. to start a MySQL database in a docker container, run:
docker-compose -f luix-passport-server/src/main/docker/mysql.yml up -d
This project contains two sub-modules, the server-side (passport-server) and the client-side (passport-client). The application will automatically execute DDL and DML SQL to initialize the database during the first startup.
Run LUI️✘ passport server:
java -jar luix-passport-server/target/*.war
Then navigate to http://localhost:9010 in your browser.
Run LUI️✘ passport client:
java -jar luix-passport-client/target/*.war
Then navigate to http://localhost:9020 in your browser.
-
WeChat ID: pm6422
-
Email: louis@luixtech.com