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
Click to show internal directories.
Click to hide internal directories.