Skip to content

Commit cc47ff8

Browse files
save file
1 parent 8055f7b commit cc47ff8

File tree

1 file changed

+40
-41
lines changed

1 file changed

+40
-41
lines changed

blog/25-07-29/gcloud-create-oauth-token/gcloud-create-oauth-token.html

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
<head>
99
<meta charset=utf-8>
10-
10+
1111
<title>
1212
gcloud Create OAuth Token
1313
</title>
14-
14+
1515
<meta name="description" content="Learn how to generate an OAuth token using Google Cloud's gcloud CLI and REST API. This guide covers uploading a ZIP archive, configuring credentials, and deploying services with secure authentication.">
1616
<link rel=icon type='image/png' href='/blog/image/blog-30.png'>
1717
<meta name=viewport content='width=device-width, initial-scale=1'>
18-
18+
1919
<base href='https://javascript-2020.github.io/blog/25-07-29/gcloud-create-oauth-token/'>
2020
<link rel=canonical href='https://ext-code.com/blog/25-07-29/gcloud-create-oauth-token/gcloud-create-oauth-token.html'>
21-
22-
21+
22+
2323
<script type='application/ld+json'>
2424

2525
{
@@ -33,16 +33,15 @@
3333
"mainEntityOfPage" : {"@type":"WebPage","@id":"https://ext-code.com/blog/25-07-29/gcloud-create-oauth-token/gcloud-create-oauth-token.html"},
3434
"publisher" : {"@type":"Organization","name":"ext-code.com","logo":{"@type":"ImageObject","url":"https://ext-code.com/favicon.ico"}},
3535
}
36-
36+
3737
</script>
38-
39-
40-
<script src='https://libs.ext-code.com/js/dom/component/component.js'></script>
41-
<script src='https://libs.ext-code.com/js/dom/init-hdr/init-hdr.js'></script>
38+
39+
40+
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js?hdr'></script>
4241

4342

4443
<link rel=stylesheet href='/blog/css/blog.css'>
45-
44+
4645
<style>
4746

4847
html
@@ -57,61 +56,61 @@
5756
[component]
5857
{display:none}
5958

60-
.description
59+
.description
6160
{max-width:1000px;text-align:justify;border-left:4px solid #4a90e2;padding:1rem;
6261
background-color:#f9f9f9;font-family:system-ui,sans-serif;font-size:1rem;line-height:1.6;color:#333}
6362
.description>p
6463
{margin:0}
6564
.description > p+p
6665
{margin:10px 0}
67-
66+
6867
code
6968
{font-family:monospace;background:whitesmoke}
7069
code.inline
7170
{display:inline;padding:5px 10px}
72-
71+
7372
a
7473
{color:#4a90e2;text-decoration:none;font-weight:500}
75-
a:hover
74+
a:hover
7675
{text-decoration:underline}
7776
.link-domain
7877
{font-size:0.85rem;color:#777;margin-left:0.25rem}
79-
.link-domain::before
78+
.link-domain::before
8079
{content:'['}
8180
.link-domain::after
8281
{content:']'}
8382
.link-txt
8483
{}
85-
84+
8685
input
8786
{font-size:16px;padding:5px 7px;box-sizing:border-box;}
8887
input[type=button]
8988
{cursor:pointer}
90-
91-
92-
89+
90+
91+
9392
pre
9493
{background:whitesmoke;border:1px solid gray;padding:10px;font-size:16px}
95-
96-
94+
95+
9796
</style>
98-
97+
9998

10099
</head>
101100

102101

103102
<body>
104-
105-
<blog-hdr component=grp1>
103+
104+
<blog-hdr component=grp1>
106105
<h1 class=title>
107106
gcloud Create OAuth Token
108107
</h1>
109108
<time slot=date datetime=2025-10-22>
110109
22 Oct 2025
111110
</time>
112111
</blog-hdr>
113-
114-
112+
113+
115114
<div class=description>
116115
<p>
117116
Learn how to generate an OAuth token using Google Cloud's gcloud CLI and REST API. This guide covers uploading a ZIP archive, configuring credentials,
@@ -127,23 +126,23 @@ <h1 class=title>
127126
</a>
128127
</p>
129128
</div>
130-
131-
129+
130+
132131
<pre>
133-
132+
134133
visit <a href='https://console.cloud.google.com/apis/dashboard'>https://console.cloud.google.com/apis/dashboard</a> for your project
135134

136135
</pre>
137136

138137

139138
<pre>
140139

141-
click
142-
140+
click
141+
143142
credentials -> create credentials -> oauth client id
144143

145144
</pre>
146-
145+
147146
<pre>
148147

149148
select web app and give the client a name
@@ -162,32 +161,32 @@ <h1 class=title>
162161
http://localhost:3000
163162

164163
</pre>
165-
166-
164+
165+
167166
<pre>
168167

169168
under Authorized redirect URIs
170169

171-
redirect uri's are sometimes used when granting access, the user will be sent to a google
172-
consent page, when they consent they'll be redirected back here with the token in the
170+
redirect uri's are sometimes used when granting access, the user will be sent to a google
171+
consent page, when they consent they'll be redirected back here with the token in the
173172
page search parameters
174173

175-
add
176-
174+
add
175+
177176
https://oauth-redirect.googleusercontent.com/r/oauth2playground
178177

179178
to use the oauthplayground
180179

181180
</pre>
182181

183182
<pre>
184-
183+
185184
save the credentials, you'll need
186185

187186
client_id
188187

189188
client_secret
190-
189+
191190
</pre>
192191

193192
</body>

0 commit comments

Comments
 (0)