Skip to content

Commit

Permalink
chore: auth providers: rename cookie to obot_access_token
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Feb 3, 2025
1 parent 49d4d54 commit 7077faa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion github-auth-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func main() {
oauthProxyOpts.Server.BindAddress = ""
oauthProxyOpts.MetricsServer.BindAddress = ""
oauthProxyOpts.Cookie.Refresh = time.Hour
oauthProxyOpts.Cookie.Name = "obot_access_token_default__github-auth-provider"
oauthProxyOpts.Cookie.Name = "obot_access_token"
oauthProxyOpts.Cookie.Secret = string(cookieSecret)
oauthProxyOpts.Cookie.Secure = strings.HasPrefix(opts.ObotServerURL, "https://")
oauthProxyOpts.Templates.Path = os.Getenv("GPTSCRIPT_TOOL_DIR") + "/../auth-providers-common/templates"
Expand Down
2 changes: 1 addition & 1 deletion google-auth-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
oauthProxyOpts.Server.BindAddress = ""
oauthProxyOpts.MetricsServer.BindAddress = ""
oauthProxyOpts.Cookie.Refresh = time.Hour
oauthProxyOpts.Cookie.Name = "obot_access_token_default__google-auth-provider"
oauthProxyOpts.Cookie.Name = "obot_access_token"
oauthProxyOpts.Cookie.Secret = string(bytes.TrimSpace(cookieSecret))
oauthProxyOpts.Cookie.Secure = strings.HasPrefix(opts.ObotServerURL, "https://")
oauthProxyOpts.Templates.Path = os.Getenv("GPTSCRIPT_TOOL_DIR") + "/../auth-providers-common/templates"
Expand Down

0 comments on commit 7077faa

Please sign in to comment.