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

Method FromRequest

coderd/workspaceapps/provider.go:96–96  ·  view source on GitHub ↗

FromRequest returns a parsed token from the request. If the request does not contain a signed app token or is is invalid (expired, invalid signature, etc.), it returns false.

(r *http.Request)

Source from the content-addressed store, hash-verified

94 // not contain a signed app token or is is invalid (expired, invalid
95 // signature, etc.), it returns false.
96 FromRequest(r *http.Request) (*SignedToken, bool)
97 // Issue mints a new token for the given app request. It uses the long-lived
98 // session token in the HTTP request to authenticate and authorize the
99 // client for the given workspace app. The token is returned in struct and

Callers 1

ResolveRequestFunction · 0.65

Implementers 3

DBTokenProvidercoderd/workspaceapps/db.go
fakeSignedTokenProvidercoderd/workspaceapps/proxy_test.go
TokenProviderenterprise/wsproxy/tokenprovider.go

Calls

no outgoing calls

Tested by

no test coverage detected