https://github.com/edgar-code-repository/demo-jwt-authentication
JWT authentication with Spring Boot 3.2.3 and Java 17.
https://github.com/edgar-code-repository/demo-jwt-authentication
java17 jwt-authentication springboot3
Last synced: about 2 months ago
JSON representation
JWT authentication with Spring Boot 3.2.3 and Java 17.
- Host: GitHub
- URL: https://github.com/edgar-code-repository/demo-jwt-authentication
- Owner: edgar-code-repository
- Created: 2024-03-04T00:36:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-23T02:10:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T04:29:23.728Z (about 1 year ago)
- Topics: java17, jwt-authentication, springboot3
- Language: Java
- Homepage:
- Size: 245 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DEMO JWT AUTHENTICATION
--------------------------------------------------------------------------------------------------------------------
Application created with Spring Boot 3.2.3 and Java 17.
This Rest API returns a JWT Token when a user authenticates successfully.

--------------------------------------------------------------------------------------------------------------------
This app uses Web, Spring Security, JWT and Lombok dependencies:
```
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-security
io.jsonwebtoken
jjwt-api
0.11.5
io.jsonwebtoken
jjwt-impl
0.11.5
io.jsonwebtoken
jjwt-jackson
0.11.5
org.projectlombok
lombok
true
```
--------------------------------------------------------------------------------------------------------------------
Call to authentication endpoint with Postman, which returns the JWT Token:

--------------------------------------------------------------------------------------------------------------------
Call to authentication endpoint with Postman, which returns HTTP 401 when authentication fails:

--------------------------------------------------------------------------------------------------------------------