HomePhabricator
Diffusion Comm 7e8a126f400f

[native] update Tunnelbroker init message to rely on Identity `userID`

Description

[native] update Tunnelbroker init message to rely on Identity userID

Summary:
To authenticate we need to use ID assigned by identity.
I added accessToken as a dependency to fetch new Services Metadata each time CSAT changes (it should be caused by the event emitter that @marcin is implementing) so I think this should be safe and avoid any race conditions.

Note: This code is used for testing anyway and will change after making logging to Identity mandatory,

Depends on D10327

Test Plan:

  1. Login to staging Identity (loginPasswordUser).
  2. Call setCommServicesAuthMetadata.
  3. Dispatch action with the new access token.
  4. Check if the connection with staging Tunnelbroker was created.

Reviewers: marcin, varun, michal

Reviewed By: marcin

Subscribers: ashoat, tomek, marcin

Differential Revision: https://phab.comm.dev/D10370

Details

Provenance
kamilAuthored on Dec 12 2023, 10:57 AM
Reviewer
marcin
Differential Revision
D10370: [native] update Tunnelbroker init message to rely on Identity `userID`
Parents
rCOMM258c7e40fe08: [native] fix CommServicesAuthMetadata type
Branches
Unknown
Tags
Unknown