Heimdall is a god who keeps watch for invaders and the onset of Ragnarök from his dwelling Himinbjörg, where the burning rainbow bridge Bifröstmeets the sky.
- Generate the Json Web Signature of the payload
- Encrypt the payload before signing it for confidentiality
- Verify and parse the payload from the given token
- Verify and set the payload data to HTTP response headers to be used as authentication service
- Token authentication and generation via REST API
- Token generation via gRPC
Name | Required? | Default value | Note |
---|---|---|---|
JWS_SECRET_KEY | YES | ||
PAYLOAD_ENCRYPTION_KEY | If omitted, payload will not be encrypted | ||
TOKEN_VALID_TIME | |||
SENTRY_DSN | |||
MODE | development | ||
GIN_MODE | debug | ||
GIN_PORT | 8080 | ||
GRPC_PORT | 5050 |
docker run -p 8080:8080 -p 5050:5050 -e JWS_SECRET_KEY=SecretKey thetkpark/heimdall
Swagger UI is availble at
/swagger/index.html
Please look at the Protocol Buffers file in
cmd/heimdall/proto/token.proto