-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
Support ADFS encrypted key #405
Support ADFS encrypted key #405
Conversation
Thanks for sharing that code, I will review it soon. |
@pitbulk have you had a chance to review this? |
Yes I reviewed it and I'm not a fan of ignore namespaces. Trying to figure out something here. Maybe, meanwhile can you temp change your certificates, and provide an encoded SAMLResponse encryped with non production keys (and provide me by mail the necessary data to debug)? |
Perhaps something not so heavy handed? I've removed the dynamic namespace. |
@pitbulk let me know what you think of the latest changes I pushed up. |
lib/onelogin/ruby-saml/utils.rb
Outdated
{ "ds" => DSIG, "xenc" => XENC }, | ||
{ "id" => self.retrieve_symetric_key_reference(encrypt_data) } | ||
"./ds:KeyInfo/xenc:EncryptedKey | ./KeyInfo/e:EncryptedKey | //xenc:EncryptedKey[@Id=$id]", | ||
{ "ds" => DSIG, "xenc" => XENC, "e" => XENC }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add "e" => XENC if already was defined "xenc" => XENC? It should be:
"./ds:KeyInfo/xenc:EncryptedKey | ./KeyInfo/xenc:EncryptedKey | //xenc:EncryptedKey[@id=$id]",
{ "ds" => DSIG, "xenc" => XENC},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated.
I will release a new version soon. |
ADFS does not use the
ds
namespace on theirKeyInfo
node.