fix-expiration-of-token-from-actual-idtoken#1040
fix-expiration-of-token-from-actual-idtoken#1040peternied merged 29 commits intoopensearch-project:mainfrom
Conversation
|
Thank you for submitting this PR @spartan2015! Can you please sign-off all your commits so DCO can pass? |
|
@spartan2015 Thanks for contributing! Unit tests failed. Would you please take a look? |
fixed |
9f7708f to
9d9785f
Compare
fixed |
peternied
left a comment
There was a problem hiding this comment.
Thanks for this contribution, I'd like to see all the data management logic moved into helper.ts.
Signed-off-by: Miki <miki@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: cliu123 <lc12251109@gmail.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…earch-project#929) Signed-off-by: Jean-Christian Simonetti <github@elysiria.fr> Co-authored-by: Peter Nied <petern@amazon.com> Co-authored-by: Chang Liu <lc12251109@gmail.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
* Disable private tenant for read only users Signed-off-by: Gio Collina <gio.collina@eliatra.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Aozixuan Priscilla Guan <aoguan@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Clay Downs <downsrob@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…earch-project#1020) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: cliu123 <lc12251109@gmail.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…t#1025) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…)" (opensearch-project#1035) This reverts commit e4e4032. Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <irimia.vasile@gmail.com> Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…roject#895)" (opensearch-project#1035)" This reverts commit c456883362610c61fcc5d54b2974d7a5c6327c1d. Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com> Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…)" (opensearch-project#1035) This reverts commit e4e4032. Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
…roject#895)" (opensearch-project#1035)" This reverts commit c456883362610c61fcc5d54b2974d7a5c6327c1d. Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <pro@ChooseExcellenc.localdomain> Signed-off-by: Vasile Negru <vasile@eosfintek.com>
Signed-off-by: Vasile Negru <vasile@eosfintek.com>
7e17a0f to
b26ccea
Compare
# Conflicts: # server/auth/types/openid/helper.test.ts
peternied
left a comment
There was a problem hiding this comment.
So much cleaner, thanks @spartan2015
DarshitChanpura
left a comment
There was a problem hiding this comment.
thank you @spartan2015 !
Codecov Report
@@ Coverage Diff @@
## main #1040 +/- ##
=======================================
Coverage 72.27% 72.27%
=======================================
Files 87 87
Lines 1915 1915
Branches 244 244
=======================================
Hits 1384 1384
Misses 478 478
Partials 53 53 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
@spartan2015 Thanks for sticking with this change, it's been merged! |
Description
Seem like oidc token response from Gitlab expiresIn property is not the actual expiration of the idToken. idToken expires before the access_token does. Which makes it security plugin unusable when integrating with Gitlab
Category
Bug fix
Why these changes are required?
to expire the jwt token when the jwt token says is going to expire which is not the expiresIn fields from tokenResponse but the idToken claims exp field
What is the old behavior before changes and new behavior after changes?
Issues Resolved
[List any issues this PR will resolve (Is this a backport? If so, please add backport PR # and/or commits #)]
Testing
unit testing was done in helper.test.ts for the actual expiration extraction
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.