mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: override codersdk.SessionTokenCookie in develop.sh (#18991)
Updates `develop.sh`, `coder-dev.sh` and `build_go.sh` to conditionally override `codersdk.SessionTokenCookie` for usage in nested development scenario.
This commit is contained in:
+4
-2
@@ -29,9 +29,11 @@ import (
|
||||
// These cookies are Coder-specific. If a new one is added or changed, the name
|
||||
// shouldn't be likely to conflict with any user-application set cookies.
|
||||
// Be sure to strip additional cookies in httpapi.StripCoderCookies!
|
||||
// SessionTokenCookie represents the name of the cookie or query parameter the API key is stored in.
|
||||
// NOTE: This is declared as a var so that we can override it in `develop.sh` if required.
|
||||
var SessionTokenCookie = "coder_session_token"
|
||||
|
||||
const (
|
||||
// SessionTokenCookie represents the name of the cookie or query parameter the API key is stored in.
|
||||
SessionTokenCookie = "coder_session_token"
|
||||
// SessionTokenHeader is the custom header to use for authentication.
|
||||
SessionTokenHeader = "Coder-Session-Token"
|
||||
// OAuth2StateCookie is the name of the cookie that stores the oauth2 state.
|
||||
|
||||
Reference in New Issue
Block a user