Skip to content

It is a SpringBoot Security JWT generating, validating application, method's access based on JWT token.

Notifications You must be signed in to change notification settings

apuchakroborti/SpringBootSecurityJwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple spring boot project using spring security, mysql with swagger api documentation

First run the project:
$ mvn spring-boot:run

Swagger Urls: http:https://localhost:9090/service-api/swagger-ui/
http:https://localhost:9090/service-api/v3/api-docs

Using the below link get the access and refresh token:
http:https://localhost:9090/service-api/api/auth/authenticate

Request:
username and password

Response:
{ "username": "[email protected]",
"accessToken": "accessToken",
"refreshToken": "refreshToken",
"authorities": [
"ADMIN",
"USER"
]
}

From swagger click authorize, then copy the accessToken and insert that into the value field
Bearer {{accessToken}}

Then the accessToken will be passed with the Authorization header for every api call

About

It is a SpringBoot Security JWT generating, validating application, method's access based on JWT token.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages