Closed tvdijen closed 4 years ago
@jaimeperez I went with the BaseID implementation equal to OpenSAML.. Intentionally left out the implementation of the encryption classes to keep this easy to review.
Other than that, I'm thinking we could use a IdentifierTrait holding the properties and getter/setter methods for BaseID/NameID/EncryptedID because the combination of the three is common throughout the specs.. What do you reckon?
The BaseID was a little hard to understand, but we finally figured it out according to the following articles: https://www.mendix.com/blog/xml-inheritance-extension-mapping-documents/ https://www.informit.com/articles/article.aspx?p=1398625&seqNum=4 https://referencesource.microsoft.com/#System.IdentityModel/System/IdentityModel/Tokens/Saml2SecurityTokenHandler.cs (around line 2300)
Oh my, this one was hard! 😅 Not because it was hard to review, because this functionality in particular is quite difficult to model in a way that makes sense.
I know.. It's horrible :D I'll try and work on the suggested changes.. Not all comments make sense immediately..
I know.. It's horrible :D I'll try and work on the suggested changes.. Not all comments make sense immediately..
That's not a surprise, I'm aware I'm not particularly clear today. Just let me know if you need me to clarify something. I can also provide examples, of course.
Codecov Report