Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip KeyDescriptor if decryptionPvk is not provided #102

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

gnawhleinad
Copy link
Contributor

According to SAML:2.0:metadata:

...
<element name="KeyDescriptor" type="md:KeyDescriptorType"/>
<complexType name="KeyDescriptorType">
<sequence>
<element ref="ds:KeyInfo"/>
...

if KeyDescriptor exists, then it must have a KeyInfo element.

The change is to delete[A] the metadata KeyDescriptor property if decryptionPvk is not supplied.

[A]: From oozcitak/xmlbuilder-js@9540ea4, null values will be preserved.

@ploer
Copy link
Contributor

ploer commented Aug 4, 2015

Looks great, thanks for the PR!

ploer added a commit that referenced this pull request Aug 4, 2015
skip KeyDescriptor if decryptionPvk is not provided
@ploer ploer merged commit 19d2e49 into node-saml:master Aug 4, 2015
@ploer
Copy link
Contributor

ploer commented Aug 4, 2015

Will batch up a couple of changes this week to push.

ploer pushed a commit that referenced this pull request Aug 4, 2015
…or in if needed, rather than deleting it if unneeded.
@ploer
Copy link
Contributor

ploer commented Aug 4, 2015

/me glances at your picture and does double take. I think I know that guy. :-)

@gnawhleinad gnawhleinad deleted the skip_null_keydescriptor branch August 5, 2015 04:39
@gnawhleinad
Copy link
Contributor Author

haha, hi PL!

https://www.youtube.com/watch?v=b_ILDFp5DGA

achingbrain pushed a commit to achingbrain/passport-saml that referenced this pull request Aug 5, 2015
…yDescriptor in if needed, rather than deleting it if unneeded.
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.

None yet

2 participants