Implement client certificate login
This commit is contained in:
parent
714a07f162
commit
7947eaf862
9 changed files with 307 additions and 119 deletions
14
templates/idp/client_certificate.gohtml
Normal file
14
templates/idp/client_certificate.gohtml
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "content" }}
|
||||
<p>{{ .IntroText }}</p>
|
||||
<ul>
|
||||
{{ range .emails }}
|
||||
<li>{{ . }}</li>{{ end }}
|
||||
</ul>
|
||||
<p>{{ .RequestText }}</p>
|
||||
<form method="post">
|
||||
{{ .csrfField }}
|
||||
<input type="hidden" name="action" value="cert-login"/>
|
||||
<button type="submit" name="use-certificate" value="yes">{{ .AcceptLabel }}</button>
|
||||
<button type="submit">{{ .RejectLabel }}</button>
|
||||
</form>
|
||||
{{ end }}
|
|
@ -1,6 +1,7 @@
|
|||
{{ define "content" }}
|
||||
<form method="post">
|
||||
{{ .csrfField }}
|
||||
<input type="hidden" name="action" value="password-login"/>
|
||||
{{ if .errors.Form}}<p>{{ .errors.Form }}</p>{{ end }}
|
||||
{{ if .errors.Email }}<p>{{ .errors.Email }}</p>{{ end }}
|
||||
<label for="email">{{ .LabelEmail }}</label>
|
||||
|
|
Reference in a new issue