oxidecomputer / oxidecomputer/omicron
Fix device auth error handling
Open
@plotnick is already working on this.
Since Jun 27, 2022.
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
Most of the device authorization endpoints (external_api/device_auth.rs) should not return Result<_, HttpError>, since in the error case they will not be valid OAuth errors (they'll be dropshot::HttpErrorResponseBody).
Also investigate why (or indeed if) instrumentation doesn't work with Response<Body>.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.