Page MenuHomePhabricator

[native] Handle invalid CSAT in Identity RPCs
ClosedPublic

Authored by bartek on Nov 24 2024, 11:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 1, 2:46 PM
Unknown Object (File)
Tue, Dec 31, 9:45 AM
Unknown Object (File)
Sat, Dec 28, 11:19 PM
Unknown Object (File)
Sat, Dec 28, 6:52 PM
Unknown Object (File)
Sat, Dec 28, 4:47 PM
Unknown Object (File)
Fri, Dec 27, 3:06 AM
Unknown Object (File)
Thu, Dec 26, 6:27 AM
Unknown Object (File)
Thu, Dec 26, 5:51 AM
Subscribers

Details

Summary

Part of ENG-6664

Depends on D13992

Test Plan

Manual testing with mocked invalid access token. Identity authed RPC calls end up with logout.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 25 2024, 2:08 AM
kamil added inline comments.
native/identity-service/identity-service-context-provider.react.js
117 ↗(On Diff #45978)

should this be includes('bad_credentials')?

also, maybe worth combining with D14029 and putting bad_credentials into shared constant, something like this

This revision is now accepted and ready to land.Nov 25 2024, 5:09 AM
native/identity-service/identity-service-context-provider.react.js
117 ↗(On Diff #45978)

We don't use constants for client-side error code handling, but maybe we should. E.g. here

For includes, it's the same story as in https://phab.comm.dev/D14029#inline-78764 - native-rust-library takes care of the correct format