https://github.com/rrbarrero/visago
Microservice api rest for auth against an Act. Directory using jwt tokens
https://github.com/rrbarrero/visago
Last synced: 6 days ago
JSON representation
Microservice api rest for auth against an Act. Directory using jwt tokens
- Host: GitHub
- URL: https://github.com/rrbarrero/visago
- Owner: rrbarrero
- Created: 2021-12-20T19:56:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T20:52:44.000Z (over 4 years ago)
- Last Synced: 2025-02-28T06:08:26.703Z (over 1 year ago)
- Language: Go
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VisaGO
Microservicio para autenticar contra un servidor ldap y que devuelve tokens JWT con los datos de usuario.

## Todo
* La librería de JWT permite autorizar (jwt-middleware línea #70). Por ahora no lo voy a usar. Solo autenticar. En un futuro implementar que hable con otro microservicio para autorizaciones.
## Anotaciones:
* curl --location --request GET 'localhost:8080/auth/ping_with_token' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Mjg3Njc1OTksImlkIjoicm9iZXJ0by5yb2RyaWd1ZXoiLCJvcmlnX2lhdCI6MTYyODc2Mzk5OX0.Gvma5-9CjAOl_go04v_Jubq-GzEEsO7Qh2oaGANsWgQ'
* curl --location --request POST 'localhost:8080/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "user.name", "password": "password"
}'