Skip to content

Commit

Permalink
Switch saml2p prefix to samlp as used elsewhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisa committed Oct 14, 2011
1 parent 3550651 commit c81f757
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Net/SAML2/XML/Sig.pm
Expand Up @@ -114,10 +114,10 @@ sub verify {

$self->{ parser } = XML::XPath->new( xml => $xml );
$self->{ parser }->set_namespace('dsig', 'http://www.w3.org/2000/09/xmldsig#');
# TODO: Find a more elegant way to match /saml2p:Response/dsig:Signature
$self->{ parser }->set_namespace('saml2p', 'urn:oasis:names:tc:SAML:2.0:protocol');
# TODO: Find a more elegant way to match /samlp:Response/dsig:Signature
$self->{ parser }->set_namespace('samlp', 'urn:oasis:names:tc:SAML:2.0:protocol');

my $signature_nodeset = $self->{parser}->findnodes('/saml2p:Response/dsig:Signature');
my $signature_nodeset = $self->{parser}->findnodes('/samlp:Response/dsig:Signature');
my $signature_node = $signature_nodeset->shift();

my $value = $self->{parser}->findvalue('dsig:SignatureValue', $signature_node);
Expand Down

0 comments on commit c81f757

Please sign in to comment.