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] Add JWT authentication type to MultipleAuthentication #2133

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 252d8fb from #2107.

* Add JWT authentication type to MultipleAuthentication

Signed-off-by: merlinz01 <[email protected]>

* clarify comments in AuthenticationType.authHandler

Signed-off-by: merlinz01 <[email protected]>

* collect additional auth headers from all multi-auth handlers

Signed-off-by: merlinz01 <[email protected]>

* implement MultipleAuthentication.getCookie

Signed-off-by: merlinz01 <[email protected]>

* Add test for multiauth with JWT

Signed-off-by: merlinz01 <[email protected]>

* add explanatory comments in login page

Signed-off-by: merlinz01 <[email protected]>

* remove logging of JWT in test

Signed-off-by: merlinz01 <[email protected]>

* add check for empty auth options list in login page

Signed-off-by: merlinz01 <[email protected]>

* Add comments about getCookie method

Signed-off-by: merlinz01 <[email protected]>

* remove unneeded comment

Signed-off-by: merlinz01 <[email protected]>

* Don't load sample data in JWT multiauth test

Signed-off-by: merlinz01 <[email protected]>

* remove sample data code and unneeded promise handling

Signed-off-by: merlinz01 <[email protected]>

* update test for missing JWT

Signed-off-by: merlinz01 <[email protected]>

* ensure JWT signing key consistency

Signed-off-by: merlinz01 <[email protected]>

---------

Signed-off-by: merlinz01 <[email protected]>
Co-authored-by: Derek Ho <[email protected]>
(cherry picked from commit 252d8fb)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.46%. Comparing base (a40fe21) to head (e0df82b).
Report is 1 commits behind head on 2.x.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #2133      +/-   ##
==========================================
+ Coverage   71.40%   71.46%   +0.05%     
==========================================
  Files          97       97              
  Lines        2651     2649       -2     
  Branches      411      403       -8     
==========================================
  Hits         1893     1893              
+ Misses        642      641       -1     
+ Partials      116      115       -1     

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

@derek-ho derek-ho merged commit a58664c into 2.x Oct 7, 2024
34 checks passed
@derek-ho derek-ho deleted the backport/backport-2107-to-2.x branch October 7, 2024 14:37
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.

1 participant