diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9fcf944e803e8b610af98ca1b88af8e38c745804..a644a2386017838e3f8ce009c4091818d3543e7d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ~~~~~ diff --git a/aleksis/core/settings.py b/aleksis/core/settings.py index 4d53de6fe3be378fba96ee34a54eaefb52a4d24b..d4b986882fe3f45352622a4987c361093182261e 100644 --- a/aleksis/core/settings.py +++ b/aleksis/core/settings.py @@ -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"), } ) diff --git a/aleksis/core/templates/oauth2_provider/authorize.html b/aleksis/core/templates/oauth2_provider/authorize.html index 53c005d2c7d983bd2e98557104d8eccc24cc68cd..5eaf3151021c27fd24b8e19e195a4a2e14d5279a 100644 --- a/aleksis/core/templates/oauth2_provider/authorize.html +++ b/aleksis/core/templates/oauth2_provider/authorize.html @@ -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 }}