Skip to content

This project provides you a standard auth2 server and client configuration powered by Spring Boot 2 with the ability to authenticate login and using MySQL DB as datastore.

License

Notifications You must be signed in to change notification settings

pm6422/luix-passport

Repository files navigation

LUI️✘ Passport

Official website

Overview

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.

Requirements

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

Dependencies

  • spring-boot 2.7.1

  • spring-security-oauth2-authorization-server 0.3.1

  • AngularJS 1.5.0

Build

Run the following command to build the project:

./mvnw clean verify

Run

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.

Running the test cases

Import the project into your IDE and run OAuth2OAuth2AuthorizationIT test case.

What is it doing?

The tests are making requests to the token endpoint with the client_credentials, password,refresh_token,authorization_code grant types.

Snapshots

01
02
03

Contacts

Thanks

Thanks for the license providing by JetBrains

220236 f5275c90 5531506

About

This project provides you a standard auth2 server and client configuration powered by Spring Boot 2 with the ability to authenticate login and using MySQL DB as datastore.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published