Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yusuf-daglioglu/jwt_spring_security_demo
JWT Spring Security Demo
https://github.com/yusuf-daglioglu/jwt_spring_security_demo
java jwt spring spring-boot spring-security spring-security-jwt
Last synced: about 1 month ago
JSON representation
JWT Spring Security Demo
- Host: GitHub
- URL: https://github.com/yusuf-daglioglu/jwt_spring_security_demo
- Owner: yusuf-daglioglu
- Created: 2021-09-12T11:11:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-28T08:39:09.000Z (over 1 year ago)
- Last Synced: 2024-09-12T06:22:33.850Z (3 months ago)
- Topics: java, jwt, spring, spring-boot, spring-security, spring-security-jwt
- Language: Java
- Homepage:
- Size: 35.2 KB
- Stars: 30
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JWT Spring Security Demo
Simple demo using:
- JSON Web Token (JWT)
- Spring Security
- Spring Boot## Requirements
- Maven 3
- Java 1.8## Usage
run Spring Boot maven plugin:
> mvn spring-boot:run
Go to:
[http://localhost:8080](http://localhost:8080)
## Users
- Admin - admin:admin
- User - user:password
- Disabled - disabled:password## User Passwords
https://en.wikipedia.org/wiki/Bcrypt is using to encode passwords.
## Database
- [http://localhost:8080/h2-console/](http://localhost:8080/h2-console/)
- This demo project use H2 db. If you want to change it, change the values of *application.yml*.
- For other databases like MySQL sequences don't work for ID generation. So you have to change the GenerationType in the
entity beans to 'AUTO' or 'IDENTITY'.# JWT-Decode
I use this library:
https://github.com/auth0/jwt-decode
jwt-decode is a small browser library that helps to decode JWTs token which are Base64Url encoded.