MCPcopy
hub / github.com/authgear/authgear-server / Controller

Struct Controller

pkg/auth/handler/webapp/controller.go:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108type Controller struct {
109 ControllerDeps
110
111 path string
112 request *http.Request
113 response http.ResponseWriter
114
115 // preHandler will be executed before any handler executed
116 preHandler func(ctx context.Context) error
117 getHandler func(ctx context.Context) error
118 postHandlers map[string]func(ctx context.Context) error
119
120 skipRewind bool
121}
122
123func (c *Controller) RequireUserID(ctx context.Context) string {
124 userID := session.GetUserID(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected