https://github.com/exequielraineri/jwt_service
Servicio para Seguridad con JSON Web Token
https://github.com/exequielraineri/jwt_service
java jsonwebtoken jwt spring
Last synced: about 1 month ago
JSON representation
Servicio para Seguridad con JSON Web Token
- Host: GitHub
- URL: https://github.com/exequielraineri/jwt_service
- Owner: exequielraineri
- Created: 2024-12-22T02:14:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-22T02:21:06.000Z (over 1 year ago)
- Last Synced: 2025-03-23T21:47:13.344Z (over 1 year ago)
- Topics: java, jsonwebtoken, jwt, spring
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Security with JWT
### Descripción
Este proyecto demuestra cómo implementar seguridad utilizando JSON Web Tokens (JWT) en una aplicación Spring Boot. Incluye características de autenticación y autorización de usuarios.
#### Instalación
1. Clona el repositorio:
```sh
git clone https://github.com/exequielraineri/JWT_Service.git
cd JWT_Service
```
2. Configura la base de datos en :
```properties
spring.datasource.url=jdbc:mysql://localhost:3306/database_name
spring.datasource.username=root
spring.datasource.password=root
```
3. Construye el proyecto:
```sh
mvn clean install
```
4. Ejecuta la aplicación:
```sh
mvn spring-boot:run
```
### Endpoints de API
#### Autenticación
- `POST /auth/login`: Autenticar un usuario.
- `POST /auth/register`: Registrar un nuevo usuario.
#### Ejemplo
- `GET /api/v1/hello`: Devuelve un mensaje de "Hello World".