Software / code / prosody-modules
Diff
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 |
line wrap: on
line diff
--- a/mod_http_oauth2/html/consent.html Tue Jul 15 12:21:23 2025 +0200 +++ b/mod_http_oauth2/html/consent.html Tue Jul 15 16:28:40 2025 +0200 @@ -35,8 +35,12 @@ <dd><a href="{client.policy_uri}">View policy</a></dd>} <dt>Requested permissions</dt> - <dd>{scopes# - <input class="scope" type="checkbox" id="scope_{idx}" name="scope" value="{item}" checked="" /><label class="scope" for="scope_{idx}">{item}</label>} + <dd> + <dl>{scopes# + <dt><input class="scope" type="checkbox" id="scope_{idx}" name="scope" value="{item.scope}" checked="" /> + <label class="scope" for="scope_{idx}">{item.title?{item.claim}}</label></dt> + {item.description&<dd>{item.description}</dd>}} + </ul> </dd> </dl>