user_impersonate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Impersonate

func Impersonate(ss sessionstore.StoreInterface, w http.ResponseWriter, r *http.Request, userID string, secure bool) error

Impersonate creates a new session for the given user ID and sets the auth cookie on the response. The secure flag controls whether the cookie is marked Secure (use false for HTTP development).

Types

type UiInterface

type UiInterface interface {
	shared.UiInterface
	UserImpersonate(w http.ResponseWriter, r *http.Request)
}

UiInterface defines the user impersonate controller's UI interface

func UI

func UI(config shared.UiConfig) UiInterface

UI creates a new user impersonate controller UI from the given config

Jump to

Keyboard shortcuts

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