Skip to content
Snippets Groups Projects
Commit 5a3e6f8b authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '518-keyerror-scopes-with-oauth2_provider' into 'master'

Resolve "KeyError: 'SCOPES'  with OAUTH2_PROVIDER"

Closes #518

See merge request !736
parents ea1cd2e9 fc2aa31c
No related branches found
No related tags found
1 merge request!736Resolve "KeyError: 'SCOPES' with OAUTH2_PROVIDER"
Pipeline #36782 canceled
......@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Configuration mechanisms for OpenID Connect were broken.
`2.0rc6`_ - 2021-10-11
----------------------
......
......@@ -5,6 +5,7 @@ from django.apps import apps
from django.conf import settings
from django.http import HttpRequest
from django.utils.module_loading import autodiscover_modules
from django.utils.translation import gettext as _
from dynamic_preferences.registries import preference_models
from health_check.plugins import plugin_dir
......
......@@ -338,16 +338,6 @@ if _settings.get("oauth2.oidc.enabled", False):
# "OIDC_ISS_ENDPOINT": _settings.get("oauth2.oidc.issuer_name", "example.com"),
}
)
OAUTH2_PROVIDER["SCOPES"].update(
{
"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"),
"groups": _("Groups"),
}
)
# Configuration for REST framework
REST_FRAMEWORK = {
......
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