Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserKeyName = xcontext.UserCtxKey ImpersonatingUserKeyName = "x_impersonating_user" )
Variables ¶
This section is empty.
Functions ¶
func NewImpersonateUserMiddleware ¶
func NewImpersonateUserMiddleware( users UserReader, impersonatedHeaderName string, permissionToImpersonate string, permissionToImpersonateAll string, logger *zap.Logger, ) echo.MiddlewareFunc
NewImpersonateUserMiddleware returns a middleware to impersonate a user
func NewImpersonationError ¶
Types ¶
type ManagedUser ¶
ManagedUser is a user that is managed by another user
Click to show internal directories.
Click to hide internal directories.