We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ba7f4 commit b096862Copy full SHA for b096862
lib/Net/SAML2/IdP.pm
@@ -177,10 +177,10 @@ sub new_from_xml {
177
{
178
my $use = $key->getAttribute('use') || 'signing';
179
180
- # We can't select by ds:KeyInfo/ds:X509Data/ds:X509Certificate
181
- # because of https://rt.cpan.org/Public/Bug/Display.html?id=8784
+ $key->setNamespace('http://www.w3.org/2000/09/xmldsig#', 'ds');
+
182
my ($text)
183
- = $key->findvalue("//*[local-name()='X509Certificate']")
+ = $key->findvalue("ds:KeyInfo/ds:X509Data/ds:X509Certificate", $key)
184
=~ /^\s*(.+?)\s*$/s;
185
186
# rewrap the base64 data from the metadata; it may not
0 commit comments