modulepackage
0.0.0-20240930200011-c37ebc44d7f7
Repository: https://github.com/ssoql/auth-service.git
Documentation: pkg.go.dev
# README
auth-service
The service is responsible for generation od JWT token.
This project implements clean architecture in order to assure both high elasticity and reusability of the code.
Layers
internal/api
- can import any other layers.internal/infrastructure
- can import everything exceptapi
.internal/use_cases
- should not import anything else thaninternal/app
or standard library (orutils
)
Middleware
In order to reuse common code such as authorization this project utilizes also middleware pattern. Handlers are wrapped in pipelines where each step wraps and calls the next one.
API usage:
Create Token:
POST /token
{
"username": "[email protected]",
"password": "xxxxx"
}
Validate token:
PATCH /token/validate
{
"token": "example_token_string"
}
# Packages
No description provided by the author