Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
5a3e6f8b
Commit
5a3e6f8b
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
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
!736
Resolve "KeyError: 'SCOPES' with OAUTH2_PROVIDER"
Pipeline
#36782
canceled
3 years ago
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+8
-0
8 additions, 0 deletions
CHANGELOG.rst
aleksis/core/apps.py
+1
-0
1 addition, 0 deletions
aleksis/core/apps.py
aleksis/core/settings.py
+0
-10
0 additions, 10 deletions
aleksis/core/settings.py
with
9 additions
and
10 deletions
CHANGELOG.rst
+
8
−
0
View file @
5a3e6f8b
...
...
@@ -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
----------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/apps.py
+
1
−
0
View file @
5a3e6f8b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/settings.py
+
0
−
10
View file @
5a3e6f8b
...
...
@@ -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
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment