Comparison

mod_http_oauth2/html/consent.html @ 5208:aaa64c647e12

mod_http_oauth2: Add authentication, consent and error pages
author Matthew Wild <mwild1@gmail.com>
date Mon, 06 Mar 2023 09:46:58 +0000
child 5227:0dcd956d7bc5
comparison
equal deleted inserted replaced
5207:c72e3b0914e8 5208:aaa64c647e12
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 <h2>Authorize new application</h2>
17 <p>A new application wants to connect to your account.</p>
18 <dl>
19 <dt>Name</dt>
20 <dd>{client.client_name}</dd>
21 <dt>Website</dt>
22 <dd><a href="{client.client_uri}">{client.client_uri}</a></dd>
23
24 {client.tos_uri&
25 <dt>Terms of Service</dt>
26 <dd><a href="{client.tos_uri}">View terms</a></dd>}
27
28 {client.policy_uri&
29 <dt>Policy</dt>
30 <dd><a href="{client.policy_uri}">View policy</a></dd>}
31 </dl>
32
33 <p>To allow <em>{client.client_name}</em> to access your account
34 <em>{state.user.username}@{state.user.host}</em> and associated data,
35 select 'Allow'. Otherwise, select 'Deny'.
36 </p>
37
38 <form method="post">
39 <input type="hidden" name="user_token" value="{state.user.token}">
40 <button type="submit" name="consent" value="denied">Deny</button>
41 <button type="submit" name="consent" value="granted">Allow</button>
42 </form>
43 </main>
44 </body>
45 </html>