Skip to content

Commit

Permalink
Merge pull request #12 from aveyrenc/kubectl
Browse files Browse the repository at this point in the history
Show a kubectl based version of configuration update
  • Loading branch information
fydrah authored Dec 21, 2018
2 parents 10e137d + bb466a7 commit a0450f5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/token.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ <h1>{{ .Name }}</h1>
name: oidc</code></pre>
</div>
</li>
<li>
<label>or execute this in your shell</label>
<div class="code-box-copy">
<button class="code-box-copy__btn" title=
"Copy" type="button" data-clipboard-target="#kubectl">
</button>
<pre><code class="language-yaml" id=
"kubectl">kubectl config set-credentials {{ .UsernameClaim }} \
--auth-provider oidc \
--auth-provider-arg idp-issuer-url={{ .Claims.iss }} \
--auth-provider-arg client-id={{ .ClientID }} \
--auth-provider-arg id-token={{ .IDToken }} \
--auth-provider-arg client-secret={{ .ClientSecret }} \
--auth-provider-arg refresh-token={{ .RefreshToken }}</code></pre>
</div>
</li>
<li><label>Return to login page</label> <input type=
"submit" value="Home"></li>
</ul>
Expand Down

0 comments on commit a0450f5

Please sign in to comment.