[rw] Call BCID endpoint
This change adds functionality to call the BCID endpoint and read the
response. This is essentially impossible to test locally, the
allowlists/scopes/token exchange hoops are too numerous and brittle. The
unit test just makes sure that a reasonable request is able to be
unmarshaled into a reasonable response.
Unfortunately this is going to have to be a test in production thing.
Bug: b/299941280
Change-Id: I5e9adde2203a1fbcbd55a03b12503b14b40d5067
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/919593
Reviewed-by: Nathan Mulcahey <nmulcahey@google.com>
Commit-Queue: Chris Lewis <cflewis@google.com>
3 files changed