2020-10-13 19:35:39 +00:00
|
|
|
{{ define "title" }}
|
|
|
|
<title>{{ string .Blog.Lang "indieauth" }} - {{ .Blog.Title }}</title>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<h1>{{ string .Blog.Lang "indieauth" }}</h1>
|
2020-11-06 17:45:31 +00:00
|
|
|
<div class="p">
|
|
|
|
<form method="post" action="/indieauth/accept">
|
2020-10-13 19:35:39 +00:00
|
|
|
{{ if .Data.Scopes }}
|
|
|
|
<h3>{{ string .Blog.Lang "scopes" }}</h3>
|
|
|
|
<ul>
|
|
|
|
{{ range $i, $scope := .Data.Scopes }}
|
|
|
|
<li><input type="checkbox" name="scopes" value="{{ $scope }}" id="scope-{{ $scope }}" checked><label for="scope-{{ $scope }}">{{ $scope }}</label></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
<p><strong>client_id:</strong> {{ .Data.ClientID }}</p>
|
|
|
|
<p><strong>redirect_uri:</strong> {{ .Data.RedirectURI }}</p>
|
|
|
|
<input type="hidden" name="redirect_uri" value="{{ .Data.RedirectURI }}">
|
|
|
|
<input type="hidden" name="state" value="{{ .Data.State }}">
|
|
|
|
<input type="hidden" id="client_id" name="client_id" value="{{ .Data.ClientID }}">
|
|
|
|
<input type="submit" value="{{ string .Blog.Lang "authenticate" }}">
|
2020-11-06 17:45:31 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2020-10-13 19:35:39 +00:00
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
2020-11-06 17:45:31 +00:00
|
|
|
{{ define "indieauth" }}
|
2020-10-13 19:35:39 +00:00
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|