Comparison

mod_http_oauth2/html/consent.html @ 6336:6e80b2cb5fe6

mod_http_oauth2: Show scope descriptions This should help the user understand and provide _informed_ consent, although the texts can certainly be improved. Explaining these scopes is non-trivial.
author Kim Alvefur <zash@zash.se>
date Tue, 15 Jul 2025 16:28:40 +0200
parent 5987:111eeffb6adf
child 6339:24559118dd6c
comparison
equal deleted inserted replaced
6335:9102d75131e4 6336:6e80b2cb5fe6
33 {client.policy_uri& 33 {client.policy_uri&
34 <dt>Policy</dt> 34 <dt>Policy</dt>
35 <dd><a href="{client.policy_uri}">View policy</a></dd>} 35 <dd><a href="{client.policy_uri}">View policy</a></dd>}
36 36
37 <dt>Requested permissions</dt> 37 <dt>Requested permissions</dt>
38 <dd>{scopes# 38 <dd>
39 <input class="scope" type="checkbox" id="scope_{idx}" name="scope" value="{item}" checked="" /><label class="scope" for="scope_{idx}">{item}</label>} 39 <dl>{scopes#
40 <dt><input class="scope" type="checkbox" id="scope_{idx}" name="scope" value="{item.scope}" checked="" />
41 <label class="scope" for="scope_{idx}">{item.title?{item.claim}}</label></dt>
42 {item.description&<dd>{item.description}</dd>}}
43 </ul>
40 </dd> 44 </dd>
41 </dl> 45 </dl>
42 46
43 <p>To allow <em>{client.client_name}</em> to access your account 47 <p>To allow <em>{client.client_name}</em> to access your account
44 <em>{state.user.username}@{state.user.host}</em> and associated data, 48 <em>{state.user.username}@{state.user.host}</em> and associated data,