Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-eidaauth
Commits
48c8f19c
Commit
48c8f19c
authored
Jan 12, 2021
by
Jonathan Schaeffer
Browse files
Merge branch 'master' of gricad-gitlab.univ-grenoble-alpes.fr:OSUG/RESIF/ws-eidaauth
parents
1c866cf8
a4159a6d
Pipeline
#56594
passed with stage
in 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
eidawsauth/eidawsauth.py
View file @
48c8f19c
...
...
@@ -43,6 +43,8 @@ def parse_input_data(data):
d
=
dict
([
i
for
i
in
kv
.
split
(
':'
,
1
)]
for
kv
in
token
.
replace
(
'"'
,
''
).
replace
(
' '
,
''
).
split
(
','
))
# Add the sha1 of the token to put in the credentials db
d
[
'shortSha1'
]
=
sha1
(
token
.
encode
()).
hexdigest
()[
0
:
8
]
if
'givenName'
not
in
d
:
d
[
'givenName'
]
=
d
.
get
(
'cn'
,
'null'
)
application
.
logger
.
debug
(
"Transformed to dictionary : %s"
,
d
)
return
d
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment