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
1770455e
Commit
1770455e
authored
2 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-oidc-scope' into 'master'
Add missing claims for oidc scope "phone". Closes
#770
Closes
#770
See merge request
!1133
parents
092963f4
39d574f2
No related branches found
No related tags found
1 merge request
!1133
Add missing claims for oidc scope "phone". Closes #770
Pipeline
#103679
canceled
2 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
aleksis/core/apps.py
+4
-0
4 additions, 0 deletions
aleksis/core/apps.py
with
5 additions
and
0 deletions
CHANGELOG.rst
+
1
−
0
View file @
1770455e
...
...
@@ -35,6 +35,7 @@ Fixed
in addition to tasks started in the foreground.
* Invitations for existing short name did not work.
* Invitations for persons without pre-defined e-mail address did not behave correctly
* OIDC scope "phone" had no claims.
Removed
~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/apps.py
+
4
−
0
View file @
1770455e
...
...
@@ -212,6 +212,10 @@ class CoreConfig(AppConfig):
"
postal_code
"
:
request
.
user
.
person
.
postal_code
,
}
if
"
phone
"
in
scopes
and
has_person
(
request
.
user
):
claims
[
"
mobile_number
"
]
=
request
.
user
.
person
.
mobile_number
claims
[
"
phone_number
"
]
=
request
.
user
.
person
.
phone_number
if
"
groups
"
in
scopes
and
has_person
(
request
.
user
):
claims
[
"
groups
"
]
=
list
(
request
.
user
.
person
.
member_of
.
values_list
(
"
name
"
,
flat
=
True
).
all
()
...
...
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