Page MenuHomePhabricator

[lib][keyserver] Handle invalid CSAT for multi-holder actions
ClosedPublic

Authored by bartek on Nov 21 2024, 3:59 AM.
Tags
None
Referenced Files
F3518551: D13990.id45921.diff
Sun, Dec 22, 8:21 PM
F3518010: D13990.id.diff
Sun, Dec 22, 6:56 PM
Unknown Object (File)
Mon, Dec 16, 11:00 AM
Unknown Object (File)
Mon, Dec 16, 2:14 AM
Unknown Object (File)
Mon, Dec 16, 2:14 AM
Unknown Object (File)
Sun, Dec 15, 4:52 AM
Unknown Object (File)
Thu, Dec 5, 3:18 PM
Unknown Object (File)
Thu, Dec 5, 12:48 AM
Subscribers

Details

Summary

Part of ENG-9526

Depends on D13989

Test Plan

Manual testing with mocked invalid access token

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Sun, Nov 24, 11:01 PM
ashoat requested changes to this revision.Mon, Nov 25, 5:49 AM
ashoat added inline comments.
lib/actions/holder-actions.js
58 ↗(On Diff #45921)

Why is this optional?

109 ↗(On Diff #45921)

Why is this optional?

152 ↗(On Diff #45921)

Why are we not passing invalidTokenLogOut here?

This revision now requires changes to proceed.Mon, Nov 25, 5:49 AM
lib/actions/holder-actions.js
58 ↗(On Diff #45921)

To skip handling this error in holder cleanup step, which happens during logout

109 ↗(On Diff #45921)

Same as above / below, it's just passed deeper into call sites

152 ↗(On Diff #45921)

This is a holder cleanup, it's already called during logout. If the CSAT is invalid here, server-side cleanup will take care of this.

Thanks for explaining!

This revision is now accepted and ready to land.Mon, Nov 25, 1:20 PM