These RPCs were exposed to JS but not added to the Identity context.
Details
- Reviewers
kamil michal - Commits
- rCOMM8105e6af9a3e: [native][web] Expose Device List RPCs to JS
Called them manually on both native and web and verified they're callable as expected.
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/types/identity-service-types.js | ||
---|---|---|
135 ↗ | (On Diff #37981) | This RPC should be available only on native (primary device) |
Looks good, just requesting changes to address my and @ashoat's comments
lib/types/identity-service-types.js | ||
---|---|---|
174–177 ↗ | (On Diff #37981) | I know it's trivial but can we add a validator here and when returning result return this using assertWithValidator? |
@michal is moving the Identity client to worker now so should review this code as well
Do you think it would make sense to move this into authorization middleware? So you can specify something like
I don't remember exactly what the API for the reports service is, but right now this diff would allow everyone to "authenticate" to the reports service by just not providing credentials (and get the service token by default). This should probably be scoped per (group of) endpoints.