https://github.com/marcos-vcs/spring-boot-authentication-authorization-example
This repository aims to bring a simple example of implementing authentication and authorization using JWT and spring security.
https://github.com/marcos-vcs/spring-boot-authentication-authorization-example
java jwt mongodb rest-api spring-boot spring-data-mongodb spring-security-jwt
Last synced: about 1 year ago
JSON representation
This repository aims to bring a simple example of implementing authentication and authorization using JWT and spring security.
- Host: GitHub
- URL: https://github.com/marcos-vcs/spring-boot-authentication-authorization-example
- Owner: marcos-vcs
- License: mit
- Created: 2023-08-20T00:05:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-20T00:29:02.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T14:40:08.788Z (about 1 year ago)
- Topics: java, jwt, mongodb, rest-api, spring-boot, spring-data-mongodb, spring-security-jwt
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Authentication and authorization example using spring boot 3
### Technologies used in development
- Java
- Spring boot
- Lombok
- Spring data mongodb
- Spring security
- MongoDB
- JWT
----------
### Motivation
This project aims to share with the developer community a practical example of JWT authentication and authorization using Spring Security.
----------
### Important Tips
- This is just an example, adapt it to your scenario and use case!
- The authorization configuration should be done from the highest level to the lowest. In other words, the configurations of lower levels authorization should come first, as exemplified in the `SecurityFilterChain` class.
- The token's key and expiration time must be configured in the `application.properties` file.
----------
#### Questions or suggestions?
## Feel free to open a new issue.
**Thanks for visiting this repository!💖** If you liked it please leave a star.🌟