Documentation ¶
Index ¶
- Variables
- func ApiKeyAuthMiddleware(ctx *gin.Context, userProvider UserProviderFunc)
- func AuthMiddleware(ctx *gin.Context, cfg *viper.Viper, rsaKeys map[string]*rsa.PublicKey)
- func Authz(c *gin.Context)
- func CreateApiKeyAuthMiddleware(userProvider UserProviderFunc) openapi.MiddlewareFunc
- func CreateAuthMiddleware(cfg *viper.Viper) openapi.MiddlewareFunc
- func ErrorHandler(c *gin.Context)
- type Authentication
- type UserProviderFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceAccount = Authentication{
Username: "letsdeploy-service-account",
Token: "TODO",
}
Functions ¶
func ApiKeyAuthMiddleware ¶
func ApiKeyAuthMiddleware(ctx *gin.Context, userProvider UserProviderFunc)
func AuthMiddleware ¶
func CreateApiKeyAuthMiddleware ¶
func CreateApiKeyAuthMiddleware(userProvider UserProviderFunc) openapi.MiddlewareFunc
func CreateAuthMiddleware ¶
func CreateAuthMiddleware(cfg *viper.Viper) openapi.MiddlewareFunc
func ErrorHandler ¶
Types ¶
type Authentication ¶
func GetAuth ¶
func GetAuth(ctx context.Context) Authentication
type UserProviderFunc ¶
Click to show internal directories.
Click to hide internal directories.