api_impersonate_stop

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL