mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: use JWT ticket to avoid DB queries on apps (#6148)
Issue a JWT ticket on the first request with a short expiry that contains details about which workspace/agent/app combo the ticket is valid for.
This commit is contained in:
@ -22,7 +22,9 @@ func StripCoderCookies(header string) string {
|
||||
name, _, _ := strings.Cut(part, "=")
|
||||
if name == codersdk.SessionTokenCookie ||
|
||||
name == codersdk.OAuth2StateCookie ||
|
||||
name == codersdk.OAuth2RedirectCookie {
|
||||
name == codersdk.OAuth2RedirectCookie ||
|
||||
name == codersdk.DevURLSessionTokenCookie ||
|
||||
name == codersdk.DevURLSessionTicketCookie {
|
||||
continue
|
||||
}
|
||||
cookies = append(cookies, part)
|
||||
|
Reference in New Issue
Block a user