auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAPIKey

func LoadAPIKey(ctx context.Context, projectID string) (string, error)

LoadAPIKey fetches the API key from GCP Secret Manager.

func RequireBearerAuth

func RequireBearerAuth(apiKey string, next http.HandlerFunc) http.HandlerFunc

RequireBearerAuth wraps an http.HandlerFunc with Bearer token authentication.

Types

This section is empty.

Jump to

Keyboard shortcuts

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