Status Update
Comments
kh...@google.com <kh...@google.com>
zj...@google.com <zj...@google.com> #2
[Deleted User] <[Deleted User]> #3
OAuth client credentials don't seem to be able to be created using the gcloud command as far as we know and need to be created through the developer console. Since we create new projects from time to time and setup our environments in those projects in an almost automated way, this step means we have to manually create the OAuth client credentials ergo blocking our automation.
ga...@gmail.com <ga...@gmail.com> #4
ni...@peoplbrain.com <ni...@peoplbrain.com> #5
There's
but can't find any API to configure the Concent Oauth Screen and create new OAuth / API Keys.
Would be great to avoid unpleasing manual configuration for a lot a projects
thanks
[Deleted User] <[Deleted User]> #6
[Deleted User] <[Deleted User]> #7
[Deleted User] <[Deleted User]> #8
[Deleted User] <[Deleted User]> #9
ha...@google.com <ha...@google.com> #10
[Deleted User] <[Deleted User]> #11
I am not sure we need a library or gcloud CLI feature for this, just an API that we may use.
Our team is also trying to do as others: create environments for different features in development, and each environment has its own unique URL which requires its own set of credentials or updating existing credentials.
This is frustrating and confusing. I also am confused why this page,
[Deleted User] <[Deleted User]> #12
Otherwise, we need to manually do it via the console..
al...@google.com <al...@google.com>
be...@google.com <be...@google.com>
td...@macif.fr <td...@macif.fr> #13
da...@crispthinking.com <da...@crispthinking.com> #15
da...@crispthinking.com <da...@crispthinking.com> #16
Got told to ask about it on here, is it already being worked on?
[Deleted User] <[Deleted User]> #17
We also need configure OAuth for our application via the API (terraform if possible), but it seems like there is no option to configure authorized domains or authorized redirect URLs for the iap clients.
Is this feature request actively worked on?
Kind regards.
[Deleted User] <[Deleted User]> #18
le...@gmail.com <le...@gmail.com> #19
ko...@google.com <ko...@google.com> #20
+1
da...@gmail.com <da...@gmail.com> #21
[Deleted User] <[Deleted User]> #22
Can't be automated.
First impressions.
da...@gmail.com <da...@gmail.com> #23
ji...@gmail.com <ji...@gmail.com> #24
[Deleted User] <[Deleted User]> #25
Our use case is creating production like GCP developer environments per pull request/on demand for our engineers. This is the only part that can't be automated :(
ar...@kfirfamily.com <ar...@kfirfamily.com> #26
ad...@google.com <ad...@google.com> #27
em...@softvolution.com <em...@softvolution.com> #28
jo...@gmail.com <jo...@gmail.com> #29
wi...@softvolution.com <wi...@softvolution.com> #30
ta...@shopee.com <ta...@shopee.com> #31
aa...@gmail.com <aa...@gmail.com> #32
I need to automation entire process of setting up and tearing down applications, and not having this is a roadblock.
sh...@google.com <sh...@google.com> #33
Have a customer(Accenture) that needs this as well.
ka...@ramp.network <ka...@ramp.network> #34
ca...@gmail.com <ca...@gmail.com> #35
se...@makingscience.com <se...@makingscience.com> #36
de...@gmail.com <de...@gmail.com> #37
tu...@gmail.com <tu...@gmail.com> #38
me...@gmail.com <me...@gmail.com> #39
ro...@gmail.com <ro...@gmail.com> #40
za...@gmail.com <za...@gmail.com> #41
[Deleted User] <[Deleted User]> #42
Consent Screen and OAuth 2.0 Client IDs creation is what I am missing now
ma...@surferseo.com <ma...@surferseo.com> #43
mi...@onlineforge.cloud <mi...@onlineforge.cloud> #44
de...@gmail.com <de...@gmail.com> #45
el...@gmail.com <el...@gmail.com> #46
ma...@solenergikvalitet.se <ma...@solenergikvalitet.se> #47
cl...@gmail.com <cl...@gmail.com> #48
sa...@gmail.com <sa...@gmail.com> #49
1. For starters, the sample command to create a client doesn't work.
2. You can run a command that looks sensible, and it does create a client, 'somewhere'. I say 'somewhere', because it's never visible in the Cloud Console UI - meaning I've no way to obtain a client secret:
gcloud iam oauth-clients create your-oauth-client \
--display-name="Your OAuth Client Display Name" \
--location="global" \
--client-type="confidential-client" \
--allowed-grant-types="authorization-code-grant,refresh-token-grant" \
--allowed-scopes="openid,email" \
--allowed-redirect-uris="
This is unfortunately my first experience of automated resource management after switching from AWS to GCP. No Terraform support was the first blow, then investing the time and effort to use the CLI, only for it to fall short.
ja...@gmail.com <ja...@gmail.com> #50
pe...@gmail.com <pe...@gmail.com> #51
Following on
gcloud iam oauth-clients credentials create my-oath-client-credential \
--location="global" \
--oauth-client="my-client-id"
You then have to describe it to actually get the secret.
The problem is that even after adding the details of the oauth-client + secret to my Application, when trying to login the flow actually gets to Google Auth but I get a 401 Invalid client_id
.
I've confirmed multiple times the client_id
is the one in the result of:
gcloud iam oauth-clients describe "my-client-id" --location="global"
Note that this client id looks like a UUID instead of the format when creating via UI that looks like <numeric-code>-<alphanumeric-code>.apps.googleusercontent.com
.
Taking into account this difference and the fact that, just like your comment mentioned,
'somewhere'. I say 'somewhere', because it's never visible in the Cloud Console UI
I actually have to guess that creating via API actually never creates a valid OAuth Client.
Description
- Create the OAuth 2.0 Client ID from the command line using gcloud SDK.
- Create the OAuth consent screen from the command line using the gcloud SDK.
This will help in doing a ton of automation by pressing one button and a brand new environment gets spun up and automatically installed. This is especially great when doing CI and CD for that matter. In other words an environment per project.