mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-18 05:05:00 +00:00
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
{{ define "title" }}
|
|
<title>{{ string .Blog.Lang "indieauth" }} - {{ .Blog.Title }}</title>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main>
|
|
<h1>{{ string .Blog.Lang "indieauth" }}</h1>
|
|
<div class="p">
|
|
<form method="post" action="/indieauth/accept">
|
|
{{ 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" name="client_id" value="{{ .Data.ClientID }}">
|
|
<input type="hidden" name="code_challenge" value="{{ .Data.CodeChallenge }}">
|
|
<input type="hidden" name="code_challenge_method" value="{{ .Data.CodeChallengeMethod }}">
|
|
<input type="submit" value="{{ string .Blog.Lang "authenticate" }}">
|
|
</form>
|
|
</div>
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "indieauth" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |