auth

package
v0.0.0-...-3f5949a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthFromRequest

func AuthFromRequest(logger *zap.Logger) func(context.Context, *http.Request) context.Context

AuthFromRequest extracts the auth token from the request headers.

func BuildMiddleware

func BuildMiddleware(transport string, logger *zap.Logger) server.ToolHandlerMiddleware

BuildMiddleware creates a middleware function that ensures authentication based on the provided transport type.

func IsAuthenticated

func IsAuthenticated(ctx context.Context, transport string, logger *zap.Logger) (bool, error)

IsAuthenticated public api

Types

This section is empty.

Jump to

Keyboard shortcuts

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