middleware

package
v0.0.0-...-082decf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PartnerKeyAuth

func PartnerKeyAuth(partnerKey []string, logger *zap.Logger) echo.MiddlewareFunc

PartnerKeyAuth returns echo middleware that requires requests to carry the configured partner key as an HTTP bearer token (Authorization: Bearer <partnerKey>). It responds 401 when the header is missing, malformed, or does not match. If partnerKey is empty (unconfigured), it fails closed and rejects all requests. The key and presented token are never logged.

func RequestLogger

func RequestLogger(logger *zap.Logger) echo.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL