E52C fix(authn): forward state and token cookies to distinct metadata keys by erka · Pull Request #5479 · flipt-io/flipt · GitHub
[go: up one dir, main page]

Skip to content

fix(authn): forward state and token cookies to distinct metadata keys#5479

Merged
erka merged 1 commit intov2from
rd/v2/forward-cookie
Mar 5, 2026
Merged

fix(authn): forward state and token cookies to distinct metadata keys#5479
erka merged 1 commit intov2from
rd/v2/forward-cookie

Conversation

@erka
Copy link
Contributor
@erka erka commented Mar 4, 2026

ForwardCookies was writing both flipt_client_state and flipt_client_token
cookies into the flipt_client_state metadata key. When both cookies were
present, callback state validation could fail with "unexpected state parameter",
commonly after restart when a stale token cookie existed.

ForwardCookies was writing both flipt_client_state and flipt_client_token
cookies into the flipt_client_state metadata key. When both cookies were
present, callback state validation could fail with "unexpected state parameter",
commonly after restart when a stale token cookie existed.

Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
@erka erka requested a review from a team as a code owner March 4, 2026 23:38
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 4, 2026
@dosubot
Copy link
dosubot bot commented Mar 4, 2026

Related Documentation

Checked 4 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@codecov
Copy link
codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.40%. Comparing base (6fec5f3) to head (ccf6e22).
⚠️ Report is 2 commits behind head on v2.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2    #5479      +/-   ##
==========================================
+ Coverage   59.94%   60.40%   +0.45%     
==========================================
  Files         141      141              
  Lines       13995    13995              
==========================================
+ Hits         8389     8453      +64     
+ Misses       4890     4821      -69     
- Partials      716      721       +5     
Flag Coverage Δ
integrationtests 34.32% <0.00%> (+1.47%) ⬆️
unittests 51.53% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator
@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

ty so much!

@erka erka added the automerge Used by Kodiak bot to automerge PRs label Mar 5, 2026
@erka erka merged commit 787fb07 into v2 Mar 5, 2026
51 of 52 checks passed
@erka erka deleted the rd/v2/forward-cookie branch March 5, 2026 20:41
@github-project-automation github-project-automation bot moved this to Done in Flipt V2 Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Used by Kodiak bot to automerge PRs size:S This PR changes 10-29 lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants

0