Merge pull request #1989 from candlerb/candlerb/1732

Improve "Grant Access" template when client requests only openid scope
This commit is contained in:
Márk Sági-Kazár 2021-02-12 00:54:09 +01:00 committed by GitHub
commit a8c7ed9f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,12 +5,16 @@
<hr class="dex-separator"> <hr class="dex-separator">
<div> <div>
{{ if .Scopes }}
<div class="dex-subtle-text">{{ .Client }} would like to:</div> <div class="dex-subtle-text">{{ .Client }} would like to:</div>
<ul class="dex-list"> <ul class="dex-list">
{{ range $scope := .Scopes }} {{ range $scope := .Scopes }}
<li>{{ $scope }}</li> <li>{{ $scope }}</li>
{{ end }} {{ end }}
</ul> </ul>
{{ else }}
<div class="dex-subtle-text">{{ .Client }} has not requested any personal information</div>
{{ end }}
</div> </div>
<hr class="dex-separator"> <hr class="dex-separator">