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

Function NewAppCookies

coderd/workspaceapps/cookies.go:22–28  ·  view source on GitHub ↗

NewAppCookies returns the cookie names for the app session token for the given hostname. The subdomain cookie is unique per workspace proxy and is based on a hash of the workspace proxy subdomain hostname. See SubdomainAppSessionTokenCookie for more details.

(hostname string)

Source from the content-addressed store, hash-verified

20// based on a hash of the workspace proxy subdomain hostname. See
21// SubdomainAppSessionTokenCookie for more details.
22func NewAppCookies(hostname string) AppCookies {
23 return AppCookies{
24 PathAppSessionToken: codersdk.PathAppSessionTokenCookie,
25 SubdomainAppSessionToken: SubdomainAppSessionTokenCookie(hostname),
26 SignedAppToken: codersdk.SignedAppTokenCookie,
27 }
28}
29
30// CookieNameForAccessMethod returns the cookie name for the long-lived session
31// token for the given access method.

Calls 1