Documentation
¶
Index ¶
- func AdminSessionMiddleware(ssi adminapigen.StrictServerInterface) adminapigen.StrictMiddlewareFunc
- func ContextSessionValid(ctx context.Context) bool
- func IsSuperUserContext(ctx context.Context) bool
- func RequireSessionMiddleware() adminapigen.StrictMiddlewareFunc
- func SessionIDFromContext(ctx context.Context) string
- type Opts
- type SSI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminSessionMiddleware ¶
func AdminSessionMiddleware( ssi adminapigen.StrictServerInterface, ) adminapigen.StrictMiddlewareFunc
AdminSessionMiddleware provides context population of administration session information. If put in front of a handler, the context to the handler will contain information that can be used to determine if a KRB admin made the call, or if it was external.
func ContextSessionValid ¶
func IsSuperUserContext ¶
func RequireSessionMiddleware ¶
func RequireSessionMiddleware() adminapigen.StrictMiddlewareFunc
func SessionIDFromContext ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.