Software / code / prosody-modules
Comparison
mod_http_oauth2/html/consent.html @ 5673:0eb2d5ea2428
merge
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Sat, 06 May 2023 19:40:23 -0500 |
| parent | 5418:f2c7bb3af600 |
| child | 5424:b45d9a81b3da |
comparison
equal
deleted
inserted
replaced
| 5672:2c69577b28c2 | 5673:0eb2d5ea2428 |
|---|---|
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta charset="utf-8"> | |
| 5 <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| 6 <title>{site_name} - Authorize {client.client_name}</title> | |
| 7 <link rel="stylesheet" href="style.css"> | |
| 8 </head> | |
| 9 <body> | |
| 10 <main> | |
| 11 {state.error&<div class="error"> | |
| 12 <p>{state.error}</p> | |
| 13 </div>} | |
| 14 | |
| 15 <h1>{site_name}</h1> | |
| 16 <fieldset> | |
| 17 <legend>Authorize new application</legend> | |
| 18 <p>A new application wants to connect to your account.</p> | |
| 19 <dl> | |
| 20 <dt>Name</dt> | |
| 21 <dd>{client.client_name}</dd> | |
| 22 <dt>Website</dt> | |
| 23 <dd><a href="{client.client_uri}">{client.client_uri}</a></dd> | |
| 24 | |
| 25 {client.tos_uri& | |
| 26 <dt>Terms of Service</dt> | |
| 27 <dd><a href="{client.tos_uri}">View terms</a></dd>} | |
| 28 | |
| 29 {client.policy_uri& | |
| 30 <dt>Policy</dt> | |
| 31 <dd><a href="{client.policy_uri}">View policy</a></dd>} | |
| 32 </dl> | |
| 33 | |
| 34 <p>To allow <em>{client.client_name}</em> to access your account | |
| 35 <em>{state.user.username}@{state.user.host}</em> and associated data, | |
| 36 select 'Allow'. Otherwise, select 'Deny'. | |
| 37 </p> | |
| 38 | |
| 39 <form method="post"> | |
| 40 <details><summary>Requested permissions</summary>{scopes# | |
| 41 <input class="scope" type="checkbox" id="scope_{idx}" name="scope" value="{item}" checked><label class="scope" for="scope_{idx}">{item}</label>}{roles& | |
| 42 <select name="role">{roles# | |
| 43 <option value="{item.name}"{item.selected& selected}>{item.name}</option>} | |
| 44 </select>} | |
| 45 </details> | |
| 46 <input type="hidden" name="user_token" value="{state.user.token}"> | |
| 47 <button type="submit" name="consent" value="denied">Deny</button> | |
| 48 <button type="submit" name="consent" value="granted">Allow</button> | |
| 49 </form> | |
| 50 </fieldset> | |
| 51 </main> | |
| 52 </body> | |
| 53 </html> |