Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


Spring Security JWT

Projeto 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}
```