Skip to content

Commit

Permalink
Merge pull request #891 from EvanBldy/main
Browse files Browse the repository at this point in the history
various improvements
  • Loading branch information
EvanBldy authored Nov 26, 2024
2 parents 1580c5f + 2e3343c commit 83cc118
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ install_requires =
opencv-python==4.10.0.84
OpenTimelineIO==0.17.0
OpenTimelineIO-Plugins==0.17.0
orjson==3.10.11
orjson==3.10.12
pillow==11.0.0
psutil==6.1.0
psycopg[binary]==3.2.3
Expand Down Expand Up @@ -105,7 +105,7 @@ test =
monitoring =
prometheus-flask-exporter==0.23.1
pygelf==0.4.2
sentry-sdk==2.18.0
sentry-sdk==2.19.0

lint =
autoflake==2.3.1
Expand Down
16 changes: 15 additions & 1 deletion zou/app/blueprints/auth/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,8 +1362,22 @@ def post(self):
authn_response.get_identity()
email = authn_response.get_subject().text
person_info = {
k: v if not isinstance(v, list) else " ".join(v)
k: (
" ".join(v)
if isinstance(v, list) and k in ["first_name", "last_name"]
else v
)
for k, v in authn_response.ava.items()
if k
in [
"first_name",
"last_name",
"phone",
"role",
"departments",
"studio_id",
"active",
]
}
try:
user = persons_service.get_person_by_email(email)
Expand Down

0 comments on commit 83cc118

Please sign in to comment.