-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Resource to create OAuth 2.0 credentials #1287
Resource to create OAuth 2.0 credentials #1287
Comments
Yes, this would be really helpful, or at least some documentation detailing how this can be handled externally from terraform if this is not added. |
From what I can tell, no programmatic way exists to create an API client or to retrieve the credentials of one, which kind of ties our hands here. I think the best we can do is document how to handle this manually. |
After a little investigation I came to the same conclusion: there is no API to handle API Credentials stuff. Is there any open issue somewhere to ask Google for a Credentials API ? |
I'm not seeing one, but I'll admit to very light searching. https://issuetracker.google.com seems to be the appropriate place to open one. |
I opened a feature request https://issuetracker.google.com/issues/116182848 |
It looks like that google issue is finally resolved! https://issuetracker.google.com/issues/116182848#comment75 https://cloud.google.com/iap/docs/reference/rest#rest-resource:-v1.projects.brands 🎂 |
Can't wait for Terraform resources :D |
Hi, I didn't see it in the release note of |
Hey @fredzqm this should be included in the |
@slevenick any news on this feature ? Thanks. |
IAP OAuth brand and client resources were released in 3.15.0: |
@pdecat THanks ! |
This sounds nice, but I'm not entirely following: how would you create and use this for using Google as an IdP/identity provider for another application? For web applications being set up in the "api credentials in GCP" you need to provide a redirect url, but I don't see that being needed for any of the |
I'm not sure I understand your question. This resource is to allow programmatic generation of OAuth client_id and secret for use in IAP resources. Are you looking for something like the These resources are for this flow: https://cloud.google.com/iap/docs/programmatic-oauth-clients |
As far as I understand when you use this resource, |
I think that MPV is trying to configure this authentication flow. The idea is to use IAP to provide an authentication layer for third-party SaaS web applications (example: Looker). How can this configuration be automated in Terraform? |
Would that be these resources instead? In order to do this, I mean (in my case as IdP for a Kubernetes cluster): I've also been wanting to do this (as IdP for an OpenShift cluster), but couldn't find any matching TF resources? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
IAP support was added to
google_compute_backend_service
a while ago. But there isn't a way to create OAuth 2.0 credentials for it yet. It would be great if there was a resource to handle this so I can create IAP enabled backends where I don't have existing credentials.Terraform Version
Important Factoids
I can't actually find any API for managing OAuth 2.0 credentials. I am not sure if this is even possible since I can't find any API for it. Maybe this needs to be a API feature before a provider feature?
References
The IAP documentation and code PRs.
The text was updated successfully, but these errors were encountered: