Closed debrutal closed 3 weeks ago
I added yup-oauth2 to my Cargo.toml (Saw in cargo.lock what version my gcp-bigquery-client depended on)
and then simply did:
let sa_key: ServiceAccountKey = serde_json::from_str(service_account_key_json_string)?;
(replace service_account_key_json_string
with your &str
of choice)
note that yup-oauth2 is now reexported by gcp-bigquery-client, so no longer need to add it to your own Cargo.toml
Hi, this might be an issue on my side understanding the whole situation but i ran into an issue using service-account keys.
Authenticating a client using
refrences the struct ServiceAccountKey (Struct origins at yup-oauth2@8.3.2)
While using the default features inside this crate, i cannot find the ServiceAccountKey. So i cannot create a struct which es needed as a parameter.
I am not sure how to manage this and if it is even related to this crate, since i don't know the responsibilities on who has to include what. Any hint highly appreciated.
Workaround
A workaround for me is to read the key-file of the service account and use
Nice lib btw!