Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davescott99/spring-security-jwt
Autenticação e autorização com Spring Security e JWT
https://github.com/davescott99/spring-security-jwt
java jwt security sringboot
Last synced: 3 days ago
JSON representation
Autenticação e autorização com Spring Security e JWT
- Host: GitHub
- URL: https://github.com/davescott99/spring-security-jwt
- Owner: DaveScott99
- Created: 2024-01-27T17:29:03.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T17:40:03.000Z (12 months ago)
- Last Synced: 2024-11-18T22:24:42.181Z (2 months ago)
- Topics: java, jwt, security, sringboot
- Language: Java
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Spring Security JWTProjeto desenvolvido com o intuito de apresentar uma implementação de autenticação e autorização com Spring Security e JWT.
## Tecnologias
- [Spring Boot](https://spring.io/projects/spring-boot)
- [Spring MVC](https://docs.spring.io/spring-framework/reference/web/webmvc.html)
- [Spring Security](https://spring.io/projects/spring-security)
- [Spring Data JDBC](https://spring.io/projects/spring-data-jdbc)
- [H2](https://www.h2database.com)## Como Executar
- Clonar repositório git:
```
git clone https://github.com/DaveScott99/spring-security-jwt.git
```- Construir o projeto:
```
./mvnw clean package
```- Executar:
```
java -jar ./target/spring-security-jwt-0.0.1-SNAPSHOT.jar
```- Testar ( com [httppie](https://httpie.io) ):
```
http -a admin:admin@security POST :8080/authenticate
JWT =
http :8080/private -A bearer -a ${JWT}
```