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

Method Issue

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

Issue mints a new token for the given app request. It uses the long-lived session token in the HTTP request to authenticate and authorize the client for the given workspace app. The token is returned in struct and string form. The string form should be written as a cookie. If the request is invalid

(ctx context.Context, rw http.ResponseWriter, r *http.Request, appReq IssueTokenRequest)

Source from the content-addressed store, hash-verified

103 // app, false is returned. An error page is written to the response writer
104 // in this case.
105 Issue(ctx context.Context, rw http.ResponseWriter, r *http.Request, appReq IssueTokenRequest) (*SignedToken, string, bool)
106}

Callers 3

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