- Added sample JWT authentication service

- Added jwt secret and duration to properties
- Added jwt dependencies
- Added SecureApiRestController
- Added UserEntity
- Added UserRepository.java
This commit is contained in:
2024-04-07 18:25:39 +02:00
parent da5abba5b9
commit a93288e31c
8 changed files with 123 additions and 3 deletions

View File

@ -40,6 +40,10 @@ dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: '3.2.4'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.12.5'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.12.5'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-orgjson
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-orgjson', version: '0.12.5'
}