This repository has been archived on 2022-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
hydra_oidc_poc/templates/idp/consent.gohtml

40 lines
1.6 KiB
Text
Raw Normal View History

2020-12-31 19:11:06 +01:00
{{ define "content" }}
2021-01-02 11:38:09 +01:00
<form class="form-consent" method="post">
<img src="/images/CAcert-logo.svg" width="300" height="68" alt="CAcert" class="mb-4">
<h1 class="h3 mb-3">{{ .Title }}</h1>
{{ if .client.LogoURI }}
<p>
<img src="{{ .client.LogoURI }}" alt="{{ .client.ClientName }}"/>
</p>
{{ end }}
<p class="text-left">{{ .IntroConsentRequested }}</p>
2021-01-02 11:38:09 +01:00
<ul class="list-group text-left small mb-3">
{{ range $i, $scope := .requestedScope }}
<li class="list-group-item">
<input type="hidden" name="scope[{{ $i }}]" value="{{ $scope.Name }}">
{{ $scope.Label }}</li>
2020-12-31 19:11:06 +01:00
{{ end }}
</ul>
{{ if .requestedClaims }}
<p class="text-left">{{ .ClaimsInformation }}</p>
<ul class="list-group text-left small mb-3">
{{ range $i, $claim := .requestedClaims }}
<li class="list-group-item">
<input type="hidden" name="claims[{{ $i }}]" value="{{ $claim.Name }}">
{{ $claim.Label }}{{ if $claim.Essential }} *{{ end}}
</li>
{{ end}}
</ul>
{{ end }}
2021-01-02 11:38:09 +01:00
<p class="text-left">{{ .IntroMoreInformation }}</p>
2020-12-31 19:11:06 +01:00
2021-01-02 11:38:09 +01:00
{{ .csrfField }}
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="consent" id="consent" value="true"/>
{{ .LabelConsent }}</label>
</div>
2020-12-31 19:11:06 +01:00
2021-01-02 11:38:09 +01:00
<button class="btn btn-lg btn-primary btn-block" type="submit">{{ .LabelSubmit }}</button>
2020-12-31 19:11:06 +01:00
</form>
{{ end }}