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: 3 months ago
JSON representation
Implementando a autenticação e authorização com o Spring Security e JWT
- Host: GitHub
- URL: https://github.com/gabrielcruzrodrigues/authentication-jwt-spring-security
- Owner: gabrielcruzrodrigues
- Created: 2024-03-12T23:32:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-13T18:10:43.000Z (over 1 year ago)
- Last Synced: 2025-01-17T10:22:50.435Z (5 months ago)
- Language: Java
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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