Skip to content

Commit

Permalink
Replicate cesanta#384 for GitLab and OIDC (cesanta#385)
Browse files Browse the repository at this point in the history
Add additional examples logins to gitlab & oidc results page

Replicate what was done in cesanta#384
  • Loading branch information
genebean authored Jun 6, 2024
1 parent 82da6e8 commit aab2ae0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion auth_server/authn/data/gitlab_auth_result.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
<body>
<p class="message">
You are successfully authenticated to the Docker Registry.
Use the following username and password to login into the registry:
Log into the registry using one of these commands:
</p>
<hr>
<pre class="command"><span>$ </span>docker login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
<pre class="command"><span>$ </span>podman login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
<pre class="command"><span>$ </span>nerdctl login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
</body>
</html>
4 changes: 3 additions & 1 deletion auth_server/authn/data/oidc_auth_result.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<body>
<p class="message">
You are successfully authenticated for the Docker Registry.
Use the following username and password to login into the registry:
Log into the registry using one of these commands:
</p>
<hr>
<pre class="command"><span>$ </span>docker login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
<pre class="command"><span>$ </span>podman login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
<pre class="command"><span>$ </span>nerdctl login -u {{.Username}} -p {{.Password}} {{if .RegistryUrl}}{{.RegistryUrl}}{{else}}docker.example.com{{end}}</pre>
</body>
</html>

0 comments on commit aab2ae0

Please sign in to comment.