mirror of https://github.com/dexidp/dex.git
5 changed files with 338 additions and 0 deletions
@ -0,0 +1,42 @@
|
||||
{{ template "header.html" . }} |
||||
|
||||
<div class="panel"> |
||||
<h2 class="heading">Grant Access</h2> |
||||
|
||||
<hr> |
||||
<div class="list-with-title"> |
||||
<div class="subtle-text">{{ .Client }} would like to:</div> |
||||
{{ range $scope := .Scopes }} |
||||
<li class="bullet-point"> |
||||
<div class="subtle-text"> |
||||
{{ $scope }} |
||||
</div> |
||||
</li> |
||||
{{ end }} |
||||
</div> |
||||
<hr> |
||||
|
||||
<div> |
||||
<div class="form-row"> |
||||
<form method="post"> |
||||
<input type="hidden" name="state" value="{{ .State }}"/> |
||||
<input type="hidden" name="approval" value="approve"> |
||||
<button type="submit" class="btn btn-success"> |
||||
<span class="btn-text">Grant Access</span> |
||||
</button> |
||||
</form> |
||||
</div> |
||||
<div class="form-row"> |
||||
<form method="post"> |
||||
<input type="hidden" name="state" value="{{ .State }}"/> |
||||
<input type="hidden" name="approval" value="rejected"> |
||||
<button type="submit" class="btn btn-provider"> |
||||
<span class="btn-text">Cancel</span> |
||||
</button> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
{{ template "footer.html" . }} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,22 @@
|
||||
{{ template "header.html" . }} |
||||
|
||||
<div class="panel"> |
||||
<h2 class="heading">Log in to {{ .Issuer }} </h2> |
||||
|
||||
<div> |
||||
{{ range $c := .Connectors }} |
||||
<div class="form-row"> |
||||
<a href="{{ $c.URL }}?state={{ $.State }}" target="_self"> |
||||
<button class="btn btn-provider"> |
||||
<span class="btn-icon btn-icon-{{ $c.ID }}"></span> |
||||
<span class="btn-text">Log in with {{ $c.Name }}</span> |
||||
</button> |
||||
</a> |
||||
</div> |
||||
{{ end }} |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
|
||||
{{ template "footer.html" . }} |
||||
@ -0,0 +1,31 @@
|
||||
{{ template "header.html" . }} |
||||
|
||||
<div class="panel"> |
||||
<h2 class="heading">Log in to Your Account</h2> |
||||
<form method="post" action="{{ .PostURL }}"> |
||||
<div class="form-row"> |
||||
<div class="input-desc"> |
||||
<label for="userid">Username</label> |
||||
</div> |
||||
<input tabindex="1" required id="login" name="login" type="text" class="input-box" placeholder="username" {{ if .Username }}value="{{ .Username }}" {{ else }} autofocus {{ end }}/> |
||||
</div> |
||||
<div class="form-row"> |
||||
<div class="input-desc"> |
||||
<label for="password">Password</label> |
||||
</div> |
||||
<input tabindex="2" required id="password" name="password" type="password" class="input-box" placeholder="password" {{ if .Invalid }} autofocus {{ end }}/> |
||||
</div> |
||||
<input type="hidden" name="state" value="{{ .State }}"/> |
||||
|
||||
{{ if .Invalid }} |
||||
<div class="error-box"> |
||||
Invalid username and password. |
||||
</div> |
||||
{{ end }} |
||||
|
||||
<button tabindex="3" type="submit" class="btn btn-primary">Login</button> |
||||
|
||||
</form> |
||||
</div> |
||||
|
||||
{{ template "footer.html" . }} |
||||
Loading…
Reference in new issue