MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / AuthMiddleware

Struct AuthMiddleware

api/middleware/auth.go:54–56  ·  view source on GitHub ↗

AuthMiddleware handles authentication and authorization for API routes. It supports both master key and API key authentication using the X-LedgerForge-Key header.

Source from the content-addressed store, hash-verified

52// AuthMiddleware handles authentication and authorization for API routes.
53// It supports both master key and API key authentication using the X-LedgerForge-Key header.
54type AuthMiddleware struct {
55 service *ledgerforge.LedgerForge
56}
57
58// NewAuthMiddleware creates a new instance of AuthMiddleware.
59//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected