Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiImpersonateStop ¶
func ApiImpersonateStop(w http.ResponseWriter, r *http.Request, deps Dependencies)
func ApiImpersonateStopWithAuth ¶
func ApiImpersonateStopWithAuth(w http.ResponseWriter, r *http.Request, a types.AuthSharedInterface)
Types ¶
type Dependencies ¶
type Dependencies struct {
UserFindByAuthToken func(ctx context.Context, token string, options types.UserAuthOptions) (string, error)
UserLogout func(ctx context.Context, userID string, options types.UserAuthOptions) error
TemporaryKeyGet func(key string) (string, error)
TemporaryKeySet func(key string, value string, expiresSeconds int) error
UseCookies bool
CookieName string
SetAuthCookie func(w http.ResponseWriter, r *http.Request, token string)
ObservabilityHooks types.ObservabilityHooks
ImpersonationStop func(ctx context.Context, adminUserID string, targetUserID string) error
// Logger is used to log internal errors. If nil, slog.Default() is used.
Logger *slog.Logger
}
Click to show internal directories.
Click to hide internal directories.