Documentation ¶
Overview ¶
Package middleware provides a set of middleware for the Terragrunt provider cache server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authorization ¶
type Authorization struct {
Token string
}
func (*Authorization) Validator ¶
func (auth *Authorization) Validator(bearerToken string, ctx echo.Context) (bool, error)
Validator validates tokens.
To enhance security, we use token-based authentication to connect to the cache server in order to prevent unauthorized connections from third-party applications. Currently, the cache server only supports `x-api-key` token, the value of which can be any text.
Click to show internal directories.
Click to hide internal directories.