You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that the `example-app` will listen at http://127.0.0.1:5555 and can be changed with the `--listen` flag.
154
154
155
-
Once the example app is running, choose the GitHub option and grant access to dex to view your profile.
155
+
Once the example app is running, open a browser and go to http://127.0.0.1:5555
156
+
157
+
A page appears with fields such as scope and client-id. For the most basic case these are not required, so leave the form blank. Click login.
158
+
159
+
On the next page, choose the GitHub option and grant access to dex to view your profile.
156
160
157
161
The default redirect uri is http://127.0.0.1:5555/callback and can be changed with the `--redirect-uri` flag and should correspond with your configmap.
158
162
159
163
Please note the redirect uri is different from the one you filled when creating `GitHub OAuth2 client credentials`.
160
-
When you login, GitHub first redirects to dex (https://dex.example.com:32000/callback), then dex redirects to the redirect uri of exampl-app.
164
+
When you login, GitHub first redirects to dex (https://dex.example.com:32000/callback), then dex redirects to the redirect uri of example-app.
161
165
162
-
The printed ID Token can then be used as a bearer token to authenticate against the API server.
166
+
The printed "ID Token" can then be used as a bearer token to authenticate against the API server.
163
167
164
168
```
165
169
$ token='(id token)'
166
170
$ curl -H "Authorization: Bearer $token" -k https://( API server host ):443/api/v1/nodes
167
171
```
168
172
173
+
In the kubeconfig file ~/.kube/config, the format is:
0 commit comments