Skip to content
Snippets Groups Projects
Verified Commit 5344a22e authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Show openid scope descirptions in grant view. Closes #465

parent a3962169
No related branches found
No related tags found
1 merge request!656Resolve "OpenID Connect: Describe scopes in grant view"
Pipeline #16915 canceled
......@@ -342,11 +342,11 @@ if _settings.get("oauth2.oidc.enabled", False):
)
OAUTH2_PROVIDER["SCOPES"].update(
{
"openid": "OpenID Connect scope",
"profile": "Profile scope",
"phone": "Phone scope",
"email": "Email scope",
"address": "Address scope",
"openid": _("OpenID Connect scope"),
"profile": _("Given name, family name, link to profile and picture if existing."),
"address": _("Full home postal address"),
"email": _("Email address"),
"phone": _("Home and mobile phone"),
}
)
......
......@@ -16,7 +16,7 @@
{% trans "Authorize" %} {{ application.name }}
</div>
<p class="margin-bottom">{% trans "The application requests access to the following scopes:" %}</p>
{% for scope in scopes %}
{% for scope in scopes_descriptions %}
<p class="margin-bottom">
<i class="material-icons left">check</i>
{{ scope }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment