Skip to content

Conversation

@gusfcarvalho
Copy link
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copilot AI review requested due to automatic review settings December 30, 2025 20:54
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes SameSite cookie attributes for authentication flows to properly support OAuth2/OIDC-based SSO while maintaining stronger security for direct login.

Key Changes:

  • SSO OAuth state cookie now uses SameSiteLaxMode uniformly (was conditionally Strict in production)
  • SSO auth token cookie now uses SameSiteLaxMode uniformly (was conditionally Strict in production)
  • Normal login auth token cookie now uses SameSiteStrictMode uniformly (was conditionally Lax in development)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
internal/api/handler/auth/sso.go Updates OAuth state cookie and SSO auth token cookie to use SameSiteLaxMode consistently across environments, with explanatory comment about OAuth2/OIDC flow requirements
internal/api/handler/auth/auth.go Updates normal login auth token cookie to use SameSiteStrictMode consistently across environments for enhanced security

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
@gusfcarvalho gusfcarvalho merged commit a99c661 into main Dec 30, 2025
4 checks passed
@gusfcarvalho gusfcarvalho deleted the gc-fix-same-site-cookies branch December 30, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants