-
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
Support for Resource projects.location.oauthClient
#20225
Support for Resource projects.location.oauthClient
#20225
Comments
Note from triage: We cannot find a suitable API endpoint to use for this with the provider. If you, or the service team, can link us to some API docs this request can be unblocked |
I was able to automate the creation of this resource using the gcloud cli, and the api is available here https://cloud.google.com/iam/docs/reference/rest/v1/projects.locations.oauthClients ( I had to dig up for a bit to find it though ) This api contains the required methods to manage clients: As well as the methods to manage credentials: Would be awesome to get support for that :) |
Thank you! This issue has been forwarded to the relevant team & now with a link to the correct API endpoint it can also be picked up by other contributors too. |
Awesome ! I would also like to add that in order to achieve IAP with Workforce Federation, the IAM Client creation requires 2 calls: 1 create + 1 update 1: create the client with a placeholder redirectUri 2: retrieve the client ID from that newly created oauth client 3: compose a redirect url using the clientId 4: update the client with the redirect uri It would be awesome if the integration would allow to declaratively support this procedure |
Note: this issue is not resolved and pending adding an another resource: IAM OAuth Client Credential in GoogleCloudPlatform/magic-modules#13231. Will keep you posted. |
Community Note
Description
Context
I am setting up IAP with Workforce Identity, using the documentation available at: https://cloud.google.com/iap/docs/use-workforce-identity-federation
Problem
I cant seem to find a way to create the IAM OAuthClient, as specified:
https://cloud.google.com/iap/docs/use-workforce-identity-federation#create-oauth-client
Documentation shows an emphasis about the required OAuthClient being different from an IAP OAuthClient
And indeed, when proceeding through, the resulting oauth client resides at:
projects/{projectId}/locations/global/oauthClients/{oauthClientName}
from command:
gcloud iam oauth-clients list --location global
This resource path differs from what I would expect regarding oauth clients I dealt with in the past,
which had paths containing
iap
,brand
andproxy
kewordsAfter searching through the gcloud terraform repositories, I could not find something that looked like that resource, but maybe I am wrong.
I noticed the apis to create those clients were available for a while now, so maybe I didnt look at the right place for the terraform implementations.
Thanks for reading me :)
New or Affected Resource(s)
Did not find any resource
Potential Terraform Configuration
No response
References
No response
b/378507880
The text was updated successfully, but these errors were encountered: