Versions in this module Expand all Collapse all v0 v0.1.0 Feb 16, 2026 Changes in this version + const ContextAuthKey + const ContextUsernameKey + func GetUsernameFromContext(ctx context.Context) string + func SetUsernameContext(ctx context.Context, username string) context.Context + type AuthorizationMiddleware interface + AuthorizeApi func(next http.Handler) http.Handler + func NewAuthzMiddleware(ocmClient *ocm.Client, action, resourceType string) AuthorizationMiddleware + func NewAuthzMiddlewareMock() AuthorizationMiddleware + type JWTMiddleware interface + AuthenticateAccountJWT func(next http.Handler) http.Handler + type Middleware struct + func NewAuthMiddleware() (*Middleware, error) + func (a *Middleware) AuthenticateAccountJWT(next http.Handler) http.Handler + type MiddlewareMock struct + func (a *MiddlewareMock) AuthenticateAccountJWT(next http.Handler) http.Handler + type Payload struct + ClientID string + Email string + FirstName string + Issuer string + LastName string + Username string + func GetAuthPayload(r *http.Request) (*Payload, error) + func GetAuthPayloadFromContext(ctx context.Context) (*Payload, error) v0.1.0-rc.1 Feb 16, 2026