-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for GCP Service Account authentication? #398
Comments
At first blush, it looks like we could simply provide an optional bravado/bravado/requests_client.py Line 106 in 627f6c9
|
Checking https://cloud.google.com/compute/docs/tutorials/python-guide looks like the GCP python client exposes Google Cloud Platform apis via methods and not Swagger specs, so it shouldn't be usable with bravado. @jakebiesinger: I'm probably misunderstanding your request, so I would ask if you could describe (maybe with a snippet) what are you trying to achieve. |
Sorry this was unclear. I'm not trying to call Google APIs as if they were Swagger endpoints. Rather, I'm trying to call one of our own APIs (which is a Swagger endpoint), but to have that call authenticated as a GCP Service Account. The way non-swagger APIs would normally do this is to grab credentials for the service account and make POST or GETs using Google's own Since you generate a fresh I'll try this out in a PR if I get a chance in the next day or two. |
Hi!
New to Bravado. We use GCP service accounts extensively and I'd like to combine them with Bravado. Is this currently possible?
GCP provides a client library that's also based on Requests, but you have to use their AuthenticatedSession object to do so, which seems at odds with your direct usage of requests.Request.
Thoughts?
The text was updated successfully, but these errors were encountered: