Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthValidator ¶
type AuthValidator func(ctx context.Context, auth *middleware.AuthContext, entryRoles []string) error
AuthValidator is a function that validates authorization for a request. It receives the AuthContext and can use any backend (DB, NATS KV, Redis, HTTP). Return nil if allowed, an error with message if denied.
Click to show internal directories.
Click to hide internal directories.