Replies: 2 comments 1 reply
-
Thanks for your feedback. I agree with you that the support of different authentication flows is currently limited in this crate. There are several gcp auth crates available to improve this situation and I'm not quite sure which one to include yet (e.g. https://crates.io/crates/gcp_auth and https://crates.io/crates/google-authz). Do you have any feedback on these two crates? |
Beta Was this translation helpful? Give feedback.
-
I have looked at several projects on this subject. The crate https://crates.io/crates/google-authz seems to me the most interesting to integrate. Comments on the other alternatives:
|
Beta Was this translation helpful? Give feedback.
-
Most languages/runtimes allow by default to create a client using the known auth flow of Google.
To allow authentication in different ways in a pre-defined order, e.g.
https://docs.rs/gcp_auth/latest/gcp_auth/struct.AuthenticationManager.html#method.new also provides this.
Would it be possible to support this?
Or is this out scope and one is expected to use libraries like that in order to create a client
using credentials gathered from such external libraries?
But if so it would mean that in case I do not want to use a service key (e.g. for dev purposes) that I first need to write a tmp file?!).
Could you help me in how you see this expected flow. Might also help if this part is documented, as I find personally that info regarding authentication / client creation is a bit lacking. Which for GCloud experts might be fine, but for people who just use Gcloud occasionally it is a bit too minimal to my taste.
That being said, I hope this doesn't come over wrong and I am vary thankful to all who put their hard work into this create. It looks cool!
Beta Was this translation helpful? Give feedback.
All reactions