Skip to content

Commit d08b172

Browse files
authored
Merge pull request #230 from timlegge/fix-regression
Revert #123 Useless cert_text
2 parents ca65479 + 51ae4c8 commit d08b172

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Diff for: lib/Net/SAML2/Binding/POST.pm

+18-1
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,27 @@ Arguments:
4141
4242
path to the CA certificate for verification
4343
44+
=item B<cert>
45+
46+
path to a certificate that is added to the signed XML. It needs to be the
47+
certificate that includes the public key related to the B<key>
48+
49+
=item B<cert_text>
50+
51+
text form of the certificate in FORMAT_ASN1 or FORMAT_PEM that is used to
52+
verify the signed XML.
53+
54+
=item B<key>
55+
56+
path to a key used to sign the XML.
57+
4458
=back
4559
4660
=cut
4761

4862
has 'cacert' => (isa => 'Maybe[Str]', is => 'ro');
49-
5063
has 'cert' => (isa => 'Str', is => 'ro', required => 0, predicate => 'has_cert');
64+
has 'cert_text' => (isa => 'Str', is => 'ro');
5165
has 'key' => (isa => 'Str', is => 'ro', required => 0, predicate => 'has_key');
5266

5367
=head2 handle_response( $response )
@@ -68,6 +82,9 @@ sub handle_response {
6882
$self->verify_xml(
6983
$xml,
7084
no_xml_declaration => 1,
85+
$self->cert_text ? (
86+
cert_text => $self->cert_text
87+
) : (),
7188
$self->cacert ? (
7289
cacert => $self->cacert
7390
) : (),

0 commit comments

Comments
 (0)