Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Fixes issue with expiryTime of OIDC cookie that causes refreshToken workflow to be skipped #1995

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 70f2a9c from #1990

…orkflow to be skipped (#1990)

* Bug fix

Signed-off-by: Alankarsharma <alankar.sharma005@gmail.com>

* Update cookie expiry as well

Signed-off-by: Alankarsharma <alankar.sharma005@gmail.com>

* Lint issue fix

Signed-off-by: Alankarsharma <alankar.sharma005@gmail.com>

* fixed test case

Signed-off-by: Alankarsharma <alankar.sharma005@gmail.com>

* Add test for refresh token workflow in OIDC

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix assertion

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Update getKeepAliveExpiry logic for OIDC

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add check to ensure mockClient.post is called

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Alankarsharma <alankar.sharma005@gmail.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Co-authored-by: Alankarsharma <alankar.sharma005@gmail.com>
Co-authored-by: Darshit Chanpura <dchanp@amazon.com>
(cherry picked from commit 70f2a9c)
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.36%. Comparing base (92b2c1d) to head (d0eb123).

Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #1995   +/-   ##
=======================================
  Coverage   70.36%   70.36%           
=======================================
  Files          96       96           
  Lines        2541     2541           
  Branches      377      377           
=======================================
  Hits         1788     1788           
  Misses        660      660           
  Partials       93       93           

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

@cwperks cwperks merged commit d4b7371 into 2.x Jun 11, 2024
34 checks passed
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.

3 participants