Skip to content
Snippets Groups Projects
Commit 1171a5f8 authored by Tom Teichler's avatar Tom Teichler :beers: Committed by Jonathan Weth
Browse files

Resolve "OpenID Connect: Describe scopes in grant view"

(cherry picked from commit 1938a773)
parent dbadf6f6
No related branches found
No related tags found
1 merge request!669Do release 2.0b2
......@@ -13,6 +13,8 @@ Changed
~~~~~~~
* Add verbose names for all preference sections.
* Add verbose names for all openid connect scopes and show them in grant
view.
Fixed
~~~~~
......
......@@ -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