-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Invalid Signature on SAML Response #540
Comments
Cause of the error should be stored in the errors. While you debugging, what verification raised the exception? |
So by debugging I meant recreating the same response and calling After calling |
If you add a debugger on the is_valid? method, you can go step by step and see what check verification raised the issue. See https://github.com/deivid-rodriguez/byebug |
On debugging this issue, on version
I manually removed the four entries, base64 decoded it and ran this while debugging and it got verified successfully in On debugging on both the versions I found out that the error seemed to be in Could you please confirm if this is a bug in |
Version 1.7.0 is 2 years old. You should be using the latest. 1.7.0 has an audience validation issue: #444 |
thank you. I can see that my issue was fixed in 1.7.2 with this PR #446 |
@pitbulk In the readme https://github.com/onelogin/ruby-saml/blob/master/README.md#updating-from-160-to-170 |
Hello,
I'm verifying a signed SAML response like so
response.is_valid?
and in the error messages I have ["Invalid Signature on SAML Response"]It's similar to #442 except that I debugged and found that the x.509 certificate, the algorithm used in the response matches with the one given in the settings.
Could you help me out with that are the other conditions where it might throw up such a validation error?
I was thinking if it might throw up here https://github.com/onelogin/ruby-saml/blob/811618d08ace032c830b62d7ea3a6c2ae32d6c19/lib/onelogin/ruby-saml/response.rb#L840 but the response has just one signature attribute.
or maybe this https://github.com/onelogin/ruby-saml/blob/811618d08ace032c830b62d7ea3a6c2ae32d6c19/lib/onelogin/ruby-saml/response.rb#L866
But I'm not sure what other reasons could make this to have only one such error message.
The text was updated successfully, but these errors were encountered: