Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gabrielcruzrodrigues/authentication-jwt-spring-security
- Owner: gabrielcruzrodrigues
- Created: 2024-03-12T23:32:14.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-13T18:10:43.000Z (8 months ago)
- Last Synced: 2024-03-13T19:25:02.025Z (8 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