NAME
Net::SAML2::Role::VerifyXML - A role to verify the SAML response XML
VERSION
version 0.79
SYNOPSIS
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,
);
}
DESCRIPTION
METHODS
verify_xml($xml, %args)
$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"],
},
);
AUTHORS
Chris Andrews <chrisa@cpan.org>
Timothy Legge <timlegge@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Venda Ltd, see the CONTRIBUTORS file for others.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.