|
NAMENet::SAML2::Role::VerifyXML - A role to verify the SAML response XML VERSIONversion 0.82 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,
);
}
DESCRIPTIONMETHODSverify_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
COPYRIGHT AND LICENSEThis software is copyright (c) 2025 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.
|