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
8a910193
Commit
8a910193
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Use values_list instead of for-loop
parent
4aaf866d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!718
Resolve "[OpenID Connect] Group claim"
Pipeline
#33850
canceled
3 years ago
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/util/auth_helpers.py
+1
-2
1 addition, 2 deletions
aleksis/core/util/auth_helpers.py
with
1 addition
and
2 deletions
aleksis/core/util/auth_helpers.py
+
1
−
2
View file @
8a910193
...
...
@@ -78,8 +78,7 @@ class CustomOAuth2Validator(OAuth2Validator):
}
if
"
groups
"
in
request
.
scopes
and
has_person
(
request
.
user
):
for
group
in
request
.
user
.
person
.
groups
.
all
():
claims
[
"
groups
"
].
append
(
group
.
name
)
claims
[
"
groups
"
]
=
request
.
user
.
person
.
groups
.
values_list
(
"
name
"
,
flat
=
True
).
all
()
return
claims
...
...
This diff is collapsed.
Click to expand it.
Jonathan Weth
@hansegucker
mentioned in commit
8ea8b46f
·
3 years ago
mentioned in commit
8ea8b46f
mentioned in commit 8ea8b46ff09b3a227c4304cc07d7bb105d25af43
Toggle commit list
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