Net::SAML2::Role::VerifyXML - A role to verify the SAML response XML
version 0.62
use Net::SAML2::Some::Module; use Moose; with 'Net::SAML2::Role::VerifyXML'; sub do_something_with_xml { my $self = shift; my $xml = shift; $self->verify_xml($xml, # Most of these options are passed to Net::SAML2::XML::Sig, except for the # cacert # Most options are optional cacert => $self->cacert, cert_text => $self->cert, no_xml_declaration => 1, ); }
$self->verify_xml($xml, # Most of these options are passed to Net::SAML2::XML::Sig, except for the # cacert # Most options are optional cert_text => $self->cert, no_xml_declaration => 1, # Used for a trust model, if lacking, everything is trusted cacert => $self->cacert, # or check specific certificates based on subject/issuer or issuer hash anchors => { # one of the following is allowed subject => ["subject a", "subject b"], issuer => ["Issuer A", "Issuer B"], issuer_hash => ["Issuer A hash", "Issuer B hash"], }, );
Chris Andrews <chrisa@cpan.org>
This software is copyright (c) 2022 by Chris Andrews and Others, see the git log.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::SAML2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::SAML2
CPAN shell
perl -MCPAN -e shell install Net::SAML2
For more information on module installation, please visit the detailed CPAN module installation guide.