Repository navigation
Conversation
| { | ||
| $this->acmeeEntityId = 'https://idp.acmee.com/example'; | ||
|
|
||
| $this->acmeeCertificate = <<<EOCERTVALID |
There was a problem hiding this comment.
Let's see if we can replace these test-keys with the ones available in simplesamlphp/xml-security.. We can pull them in using the PEMCertificatesMock-class
There was a problem hiding this comment.
@tvdijen thank you for the hint. I will update the PR later today
There was a problem hiding this comment.
@tvdijen the PEMCertificatesMock class is really helpful! I replaced the hard coded certificates and removed the certs directory since it is not longer required.
There was a problem hiding this comment.
Yes, it's a great tool for testing :) Really helps to keep our tests clean.
Thanks for the updated PR! This is ready for merging now
|
I have been testing trying to break stuff. So I added in In the new then the SimpleSAML\Error\Error ctor can set I may be doing something wrong here but I thought I'd see what a strategically placed wrench might look like. |
@monkeyiq thank you for testing this. I will work on this today and update the Pull Request. |
|
@monkeyiq i fixed the issue. Can you please recheck? |
|
@ioigoume looks good! I now see: ... when I force the issue by throwing the exception :) |
|
Looking at the issue where this was raised (#2505) some of the goals including knowing the issuer and entityid where this failed. With this PR it is passed but it took a moment to see how to see it.... Digging in along those lines, with this PR in place the error.twig page can access this data through the A few options present themselves here (a) the error.twig include some commented out information about this and the docs include information for those who want to get at those values but do not want to search for how to do it. This would also include some indication of if/when one might expect those values to be populated. (b) like above but elevate them to top level issuer/entityid twig parameters similar to what is done for $data['module'] in (c) something better that can be here. |
|
For my testing I see that the element class name So that could either be switched on in the twig or something else to better display if the error was raised while processing a Is it worthwhile supporting making a more verbose message in |
@monkeyiq For instance, we could process this information within the Controller to construct more informative error messages, which would then be rendered by the view. I am uncertain whether such front-end message improvements should be included in this pull request or addressed separately. We could consider a dedicated PR, as part of the original issue, to further refine how error messages are presented to users. Additionally, what do you consider a meaningful error message in this context? Should we vary the verbosity of these messages based on whether SSP is configured for production or development environments? |
|
I guess part of my mentioning here is to capture info I found during testing. I will know that This PR certainly allows that info to propagate back :) |
|
Given the 2 approvals I will merge this tomorrow and pick it to master. @ioigoume thank you for the contribution! |
* Improve Error Messaging on checkSign failure when the certificate is invalid. * update error message check in testing * Use PEMCertificateMock instead of hardcoded certificates * Fix title_0 issue.Add NOTVALIDCERTIFICATESIGNATURE error code. * Fix tests
Improve Error Messaging on checkSign failure.