Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Logistics Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
Data Logistics Service
Commits
286c083f
Commit
286c083f
authored
1 year ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
update SSO user with role from SSO provider
parent
41d666fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Airflow 2.7.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/unity_integration.py
+4
-0
4 additions, 0 deletions
plugins/unity_integration.py
with
4 additions
and
0 deletions
plugins/unity_integration.py
+
4
−
0
View file @
286c083f
...
...
@@ -87,6 +87,10 @@ class UnityIntegrationView(AppBuilderBaseView):
else
:
log
.
error
(
"
User creation unsuccessful.
"
)
abort
(
500
)
else
:
# set role permissions of that user, if it already exists (just take the role from SSO and assign it)
fab_user
.
role
=
sec_manager
.
find_role
(
role
)
sec_manager
.
update_user
(
fab_user
)
# login as that user
login_user
(
fab_user
,
remember
=
False
)
return
redirect
(
url_for
(
"
Airflow.index
"
))
...
...
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