CookieNameForAccessMethod returns the cookie name for the long-lived session token for the given access method.
(accessMethod AccessMethod)
| 30 | // CookieNameForAccessMethod returns the cookie name for the long-lived session |
| 31 | // token for the given access method. |
| 32 | func (c AppCookies) CookieNameForAccessMethod(accessMethod AccessMethod) string { |
| 33 | if accessMethod == AccessMethodSubdomain { |
| 34 | return c.SubdomainAppSessionToken |
| 35 | } |
| 36 | // Path-based and terminal apps are on the same domain: |
| 37 | return c.PathAppSessionToken |
| 38 | } |
| 39 | |
| 40 | // SubdomainAppSessionTokenCookie returns the cookie name for the subdomain app |
| 41 | // session token. This is unique per workspace proxy and is based on a hash of |
no outgoing calls