MCPcopy Index your code
hub / github.com/coder/coder / ProvisionerDaemonAuthenticated

Function ProvisionerDaemonAuthenticated

coderd/httpmw/provisionerdaemon.go:17–20  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

15type provisionerDaemonContextKey struct{}
16
17func ProvisionerDaemonAuthenticated(r *http.Request) bool {
18 proxy, ok := r.Context().Value(provisionerDaemonContextKey{}).(bool)
19 return ok && proxy
20}
21
22type ExtractProvisionerAuthConfig struct {
23 DB database.Store

Callers 2

authorizeMethod · 0.92

Calls 2

ContextMethod · 0.65
ValueMethod · 0.45

Tested by

no test coverage detected