Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 634 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 634 Bytes

Sprint Boot JWT Generator

This is a microservice for managing authentication & protecting routes using Json Web Token.

Usage:

  1. Start a database.
  2. Uncomment the init_users method in the entry point file.
  3. Start the server.
  4. Submit the following POST request to http://localhost:8081/users/login
{
    "username": "Admin",
    "password": "123"
}

The generated token can be found in the response headers under Authorization.