Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gabrielcruzrodrigues/authentication-jwt-spring-security

Implementando a autenticação e authorização com o Spring Security e JWT
https://github.com/gabrielcruzrodrigues/authentication-jwt-spring-security

Last synced: 1 day ago
JSON representation

Implementando a autenticação e authorização com o Spring Security e JWT

Awesome Lists containing this project

README

        

# Spring Security JWT

## Tecnologias
* Spring Boot
* Spring MVC
* Spring Security
* Spring Data JDBC
* H2
## Como Executar
* Clonar repositório git:
```
https://github.com/gabrielcruzrodrigues/authentication-jwt-spring-security
```
* Construir o projeto:
```
./mvnw clean package
```
* Executar:
```
java -jar ./target/spring-security-jwt-0.0.1-SNAPSHOT.jar
```
## Endpoints:
* Authenticação, recebendo o Jwt:

POST - http://localhost:8080/authenticate - username:password (httpBasic)

* authorização, conseguindo acesso a rota privada:

GET - http://localhost:8080/private