Something went wrong. Try again.
A fork of the Cocoon PDS but being made more distributed.
Something went wrong. Try again.
2.3 kB · 62 lines
HTML
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263<!doctype html><html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="color-scheme" content="light dark" /> <link rel="stylesheet" href="/static/pico.css" /> <link rel="stylesheet" href="/static/style.css" /> <title>Application Authorization</title> </head> <body class="centered-body"> <main class="container base-container box-shadow-container authorizer-container" > <h2>Authorizing with {{ .AppName }}</h2> <p> You are signed in as <b>{{ .Handle }}</b>. <a href="/account/signout?{{ .QueryParams }}">Sign out this account</a> </p> {{ if gt (len .Accounts) 1 }} <form action="/account/switch" method="post"> <input type="hidden" name="query_params" value="{{ .QueryParams }}" /> <input type="hidden" name="next" value="/oauth/authorize" /> <label for="did">Switch to another signed-in account</label> <select name="did" id="did"> {{ range .Accounts }} <option value="{{ .Repo.Did }}" {{ if eq .Repo.Did $.ActiveDid }}selected{{ end }}> {{ .Handle }} </option> {{ end }} </select> <button type="submit">Switch account</button> </form> {{ end }} <p> Need a different account? <a href="/account/signin?{{ .QueryParams }}">Sign in another account</a>. </p> <p><b>{{ .AppName }}</b> is asking for you to grant it these scopes:</p> <ul> {{ range .Scopes }} <li><b>{{.}}</b></li> {{ end }} </ul> <p> If you press Accept, the application will be granted permissions for these scopes with your account <b>{{ .Handle }}</b>. If you reject, you will be sent back to the application. </p> <form action="/oauth/authorize" method="post"> <div class="button-row"> <input type="hidden" name="request_uri" value="{{ .RequestUri }}" /> <button class="secondary" name="accept_or_reject" value="reject"> Reject </button> <button class="primary" name="accept_or_reject" value="accept"> Accept </button> </div> </form> </main> </body></html>