Explain how to use scope.unsafe_scopes() better

This commit is contained in:
Quentin Gliech
2025-12-03 13:46:59 +01:00
parent 8a39f4181f
commit 27d96715a5

View File

@@ -6,9 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details. Please see LICENSE files in the repository root for full details.
-#} -#}
{# Macro to remove 'unsafe' scope from a scope list. Usage: {# Macro to remove 'safe' scope from a scope list. Usage:
{% call(scopes) scope.unsafe_scopes(scopes=["openid", "urn:synapse:admin:*"]) %} {% call(scopes) scope.unsafe_scopes(scopes=["openid", "urn:matrix:client:api:*", "urn:synapse:admin:*", "urn:mas:admin"]) %}
{# `scopes` only has unsafe scopes: ["urn:synapse:admin:*", "urn:mas:admin"] #}
{{ scopes }} {{ scopes }}
{% endcall %} {% endcall %}
#} #}