middleware

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ClaimsKey contextKey = "claims"
View Source
const TokenKey tokenKey = "token"

Variables

This section is empty.

Functions

func DenyWorkspaceScopedTokens

func DenyWorkspaceScopedTokens(next http.Handler) http.Handler

DenyWorkspaceScopedTokens is a middleware that denies workspace-scoped tokens

func JWTMiddleware

func JWTMiddleware(next http.Handler) http.Handler

JWTMiddleware parses the JWT token and adds claims to the request context.

func WithLogger

func WithLogger(next http.Handler) http.Handler

WithLogger adds a logger to the context and logs request information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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