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 ...@@ -13,6 +13,8 @@ Changed
~~~~~~~ ~~~~~~~
* Add verbose names for all preference sections. * Add verbose names for all preference sections.
* Add verbose names for all openid connect scopes and show them in grant
view.
Fixed Fixed
~~~~~ ~~~~~
......
...@@ -342,11 +342,11 @@ if _settings.get("oauth2.oidc.enabled", False): ...@@ -342,11 +342,11 @@ if _settings.get("oauth2.oidc.enabled", False):
) )
OAUTH2_PROVIDER["SCOPES"].update( OAUTH2_PROVIDER["SCOPES"].update(
{ {
"openid": "OpenID Connect scope", "openid": _("OpenID Connect scope"),
"profile": "Profile scope", "profile": _("Given name, family name, link to profile and picture if existing."),
"phone": "Phone scope", "address": _("Full home postal address"),
"email": "Email scope", "email": _("Email address"),
"address": "Address scope", "phone": _("Home and mobile phone"),
} }
) )
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
{% trans "Authorize" %} {{ application.name }} {% trans "Authorize" %} {{ application.name }}
</div> </div>
<p class="margin-bottom">{% trans "The application requests access to the following scopes:" %}</p> <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"> <p class="margin-bottom">
<i class="material-icons left">check</i> <i class="material-icons left">check</i>
{{ scope }} {{ 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