Skip to content

Conversation

@Dlacreme
Copy link

@Dlacreme Dlacreme commented Jun 24, 2022

The mapping done by esaml works well but does not add the initial fields to the result. This PR solves the matter by keeping all the data sent by the IDPs. This helped us to provide helpful logs for debugging and clearly improve maintainability.

From our test, this has no impact on the current implementation. While I don't expect a direct merge, I hope to gather some of your feedbacks/ideas.

Before this change:

%{      
  givenName: 'Student',
  mail: 'student1@xxx.nl',
  surName: 'One',
  uid: 'student1',
  "urn:mace:dir:attribute-def:givenName": 'Student',
  "urn:mace:dir:attribute-def:mail": 'student1@xxx.nl',
  "urn:mace:dir:attribute-def:sn": 'One',
  "urn:mace:dir:attribute-def:uid": 'student1', 
  "urn:oid:1.3.6.1.4.1.25178.1.2.9": 'xxx.nl'
}

After this change:

%{      
  :givenName => 'Student',
  :mail => 'student1@xxx.nl',
  :surName => 'One',
  :uid => 'student1',
  :"urn:mace:dir:attribute-def:givenName" => 'Student',
  :"urn:mace:dir:attribute-def:mail" => 'student1@xxx.nl',
  :"urn:mace:dir:attribute-def:sn" => 'One',
  :"urn:mace:dir:attribute-def:uid" => 'student1',
  :"urn:oid:1.3.6.1.4.1.25178.1.2.9" => 'xxx.nl',
  'urn:mace:dir:attribute-def:givenName' => 'Student',
  'urn:mace:dir:attribute-def:mail' => 'student1@xxx.nl',
  'urn:mace:dir:attribute-def:sn' => 'One',
  'urn:mace:dir:attribute-def:uid' => 'student1',
  'urn:mace:terena.org:attribute-def:schacHomeOrganization' => 'xxx.nl',
  'urn:oid:0.9.2342.19200300.100.1.1' => 'student1',
  'urn:oid:0.9.2342.19200300.100.1.3' => 'student1@xxx.nl',
  'urn:oid:1.3.6.1.4.1.25178.1.2.9' => 'xxx.nl',
  'urn:oid:2.5.4.4' => 'One',
  'urn:oid:2.5.4.42' => 'Student'
}

@CLAassistant
Copy link

CLAassistant commented Jul 23, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants