Commit 48c8f19c authored by Jonathan Schaeffer's avatar 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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment