|
27 | 27 | <img class="w-16 h-16" src="{{ client.logo_uri }}" /> |
28 | 28 | {% endif %} |
29 | 29 | </div> |
30 | | - <h1 class="text-lg text-center font-medium"><a target="_blank" href="{{ client.client_uri }}" class="text-accent">{{ client.client_name | default(value=client.client_id) }}</a></h1> |
31 | | - <h1>at {{ grant.redirect_uri }}</h1> |
32 | | - <h1>wants to access your Matrix account</h1> |
| 30 | + <h1 class="text-center font-medium"><a target="_blank" href="{{ client.client_uri }}" class="text-accent">{{ client.client_name | default(value=client.client_id) }}</a></h1> |
| 31 | + <h1>at {{ grant.redirect_uri | simplify_url }}</h1> |
| 32 | + <h1>wants to access your account</h1> |
33 | 33 | </div> |
34 | 34 | <div class="flex items-center m-2"> |
35 | 35 | <div class="px-4 flex-1"> |
36 | 36 | <p>This will allow <a target="_blank" href="{{ client.client_uri }}" class="text-accent">{{ client.client_name | default(value=client.client_id) }}</a> to:</p> |
37 | 37 |
|
38 | 38 | <p class="my-2"> |
39 | | - <ul class="list-disc"> |
40 | | - {% for scope in grant.scope | split(pat=" ") %} |
41 | | - {% if scope == "openid" %} |
42 | | - <li>See your profile info and contact details</li> |
43 | | - {% elif scope == "urn:mas:graphql:*" %} |
44 | | - <li>Edit your profile and contact details</li> |
45 | | - <li>Manage your devices and sessions</li> |
46 | | - {% elif scope == "urn:matrix:org.matrix.msc2967.client:api:*" %} |
47 | | - <li>View your existing messages and data</li> |
48 | | - <li>Send new messages on your behalf</li> |
49 | | - {% elif scope == "urn:synapse:admin:*" %} |
50 | | - <li>Administer the Synapse homeserver</li> |
51 | | - {% elif scope == "urn:mas:graphql:admin" %} |
52 | | - <li>Administer any user on the MAS authentication server</li> |
53 | | - {% elif scope is matching("^urn:matrix:org.matrix.msc2967.client:device:") %} |
54 | | - {# <li>{{ scope }}</li> #} |
55 | | - {% else %} |
56 | | - <li>{{ scope }}</li> |
57 | | - {% endif %} |
58 | | - {% endfor %} |
59 | | - </ul> |
| 39 | + {{ scope::list(scopes=grant.scope) }} |
60 | 40 | </p> |
61 | | - <p class="font-bold my-2">Make sure that you trust {{ client.client_name }}</p> |
| 41 | + <p class="font-bold my-2">Make sure that you trust {{ client.client_name | default(value=client.client_id) }}.</p> |
62 | 42 | <p> |
63 | 43 | You may be sharing sensitive information with this site or app. |
64 | 44 | {% if client.policy_uri or client.tos_uri %} |
|
0 commit comments