Commit a4159a6d authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Merge branch 'fix-givenname' into 'master'

fix missing givenName

See merge request !5
parents 493b4571 c55d4a77
Pipeline #56593 failed with stage
......@@ -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
Supports Markdown
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