Explain how to use scope.unsafe_scopes() better
This commit is contained in:
@@ -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 %}
|
||||||
#}
|
#}
|
||||||
|
|||||||
Reference in New Issue
Block a user