azure-activedirectory-identitymodel-extensions-for-dotnet icon indicating copy to clipboard operation
azure-activedirectory-identitymodel-extensions-for-dotnet copied to clipboard

Adds ReadReferences method

Open gislikonrad opened this issue 5 years ago • 11 comments

fixes #1449

Adds a ReadReferences method that is called by ReadSignedInfo. ReadReferences makes the same checks as were done previously in ReadSignedInfo.

gislikonrad avatar Jun 15 '20 11:06 gislikonrad

@gislikonrad this is a good fix as it will maintain the existing behavior, yet allow for extensibility. I would like to add some tests to see explore behavior with multiple references.

brentschmaltz avatar Jun 17 '20 15:06 brentschmaltz

@brentschmaltz You mind if I attempt to add some more enhancements to extendability to this class with backwards compatability in mind?

gislikonrad avatar Jun 24 '20 11:06 gislikonrad

@gislikonrad sure, ill review any changes you make.

brentschmaltz avatar Jun 24 '20 15:06 brentschmaltz

@gislikonrad i would like to put this in next months release as we will be working on our WsTrust work and I would like to coordinate with this PR.

brentschmaltz avatar Jun 26 '20 18:06 brentschmaltz

@brentschmaltz Sounds good. There are a few things I might want to add in the mean time, if I don't run out of time. I'm working on an X509SecurityTokenValidator to be used with my SOAP hosting extension for AspNetCore 2.1 and 3.1. Signatures are a bit different with the BinarySecurityToken than they are in Saml and Saml2.

gislikonrad avatar Jun 26 '20 21:06 gislikonrad

@brentschmaltz I think the few items I need/want to add should go into the WsTrust project. So, for me at least, this could be merged into dev.

What I want to add is the ability to use a SecurityToken to validate a digital signature. So extending DSigSerializer to read the WS-Security SecurityTokenReference element. Then adding an extension method to Signature named Validate where you can pass it an IEnumerable<SecurityToken>.

gislikonrad avatar Jul 17 '20 17:07 gislikonrad

@gislikonrad we are looking to release an updated version within a week or so and we would like to get this in. Can you rebase against the current dev branch. Sorry for the extra work as we didn't get this in last release.

brentschmaltz avatar Aug 13 '20 01:08 brentschmaltz

@brentscmaltz I'll try to get it done this weekend.

gislikonrad avatar Aug 13 '20 09:08 gislikonrad

@brentschmaltz The commits have been rebased and squashed.

gislikonrad avatar Aug 17 '20 10:08 gislikonrad

@gislikonrad thanks!

brentschmaltz avatar Aug 17 '20 16:08 brentschmaltz

@gislikonrad if you can rebase this against current dev, we will get this into the next release.

brentschmaltz avatar Nov 05 '21 17:11 brentschmaltz

@gislikonrad i think there is value here and we can get this in. There are some conflicts that need to be resolved.

brentschmaltz avatar Sep 22 '23 19:09 brentschmaltz

I've rebased my branch on your dev branch and answered the comments.

gislikonrad avatar Sep 25 '23 14:09 gislikonrad

The missing flush of the dictionary writer has been re-added.

gislikonrad avatar Sep 27 '23 10:09 gislikonrad

@gislikonrad we will try and be faster next time :-) Thanks!

brentschmaltz avatar Oct 06 '23 02:10 brentschmaltz