Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd-nginxauth
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
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uffd
uffd-nginxauth
Commits
51d48203
Commit
51d48203
authored
4 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
added ldap_uuid
parent
ba708dac
No related branches found
No related tags found
No related merge requests found
Pipeline
#673
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app.py
+2
-0
2 additions, 0 deletions
app.py
with
2 additions
and
0 deletions
app.py
+
2
−
0
View file @
51d48203
...
@@ -26,6 +26,7 @@ def create_app(test_config=None):
...
@@ -26,6 +26,7 @@ def create_app(test_config=None):
resp
.
headers
[
'
OAUTH-USER-NICKNAME
'
]
=
session
[
'
user_nickname
'
]
resp
.
headers
[
'
OAUTH-USER-NICKNAME
'
]
=
session
[
'
user_nickname
'
]
resp
.
headers
[
'
OAUTH-USER-EMAIL
'
]
=
session
[
'
user_email
'
]
resp
.
headers
[
'
OAUTH-USER-EMAIL
'
]
=
session
[
'
user_email
'
]
resp
.
headers
[
'
OAUTH-USER-LDAP-DN
'
]
=
session
[
'
user_ldap_dn
'
]
resp
.
headers
[
'
OAUTH-USER-LDAP-DN
'
]
=
session
[
'
user_ldap_dn
'
]
resp
.
headers
[
'
OAUTH-USER-LDAP-UUID
'
]
=
session
[
'
user_ldap_uuid
'
]
resp
.
headers
[
'
OAUTH-USER-GROUPS
'
]
=
'
,
'
.
join
(
session
[
'
user_groups
'
])
resp
.
headers
[
'
OAUTH-USER-GROUPS
'
]
=
'
,
'
.
join
(
session
[
'
user_groups
'
])
return
resp
return
resp
...
@@ -53,6 +54,7 @@ def create_app(test_config=None):
...
@@ -53,6 +54,7 @@ def create_app(test_config=None):
session
[
'
user_nickname
'
]
=
userinfo
[
'
nickname
'
]
session
[
'
user_nickname
'
]
=
userinfo
[
'
nickname
'
]
session
[
'
user_email
'
]
=
userinfo
[
'
email
'
]
session
[
'
user_email
'
]
=
userinfo
[
'
email
'
]
session
[
'
user_ldap_dn
'
]
=
userinfo
[
'
ldap_dn
'
]
session
[
'
user_ldap_dn
'
]
=
userinfo
[
'
ldap_dn
'
]
session
[
'
user_ldap_uuid
'
]
=
userinfo
[
'
ldap_uuid
'
]
session
[
'
user_groups
'
]
=
userinfo
[
'
groups
'
]
session
[
'
user_groups
'
]
=
userinfo
[
'
groups
'
]
return
redirect
(
session
.
pop
(
'
url
'
))
return
redirect
(
session
.
pop
(
'
url
'
))
...
...
This diff is collapsed.
Click to expand it.
Julian
@julian
mentioned in commit
e2c95d42
·
4 years ago
mentioned in commit
e2c95d42
mentioned in commit e2c95d42c1a42d3a1448a0001afc9d93a9098294
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