Skip to content

Rapter1990/Spring-Boot-JWT-Authentication

Repository files navigation

Spring Boot JWT Authentication

Image description

In this project , I show a Spring Boot application that makes use of JWT authentication for securing an exposed REST API.I can benefit from hard-coded user values for user authentication.Any user can consume this REST API only if it has a valid JSON Web Token (JWT).

I develop a Spring Boot application that exposes REST GET API and REST POST API with mapping with relating pathes and then configure Spring Security for JWT. Before allowing the relevant users who access to the API with mapping pathes if a token is valid , REST POST API is used to expose with mapping path named for /authenticate to determine which user will get the valid JSON Web Token.

Image

Picture 1 Picture 2
Picture 3 Picture 4
Picture 5 Picture 6
Picture 7 Picture 8