Skip to content

Commit 4c20821

Browse files
committed
Moving to XML::Sig - keeping them in sync is a pain
1 parent dd9776e commit 4c20821

File tree

11 files changed

+31
-1831
lines changed

11 files changed

+31
-1831
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Issues should be reported at [Github Issue](https://github.com/perl-net-saml2/pe
66

77
Future Plans:
88

9-
1. Move to configurable Certificate Verification with Crypt::OpenSSL::Verify replacing Crypt::OpenSSL::VerifyX509 as the default eventually
10-
2. Allow XML Signature Verification to be configurable with XML::Sig possibly replacing Net::SAML2::XML::Sig at the default eventually
9+
1. Move to configurable Certificate Verification with Crypt::OpenSSL::Verify replacing Crypt::OpenSSL::VerifyX509 as the default eventually - DONE
10+
2. Allow XML Signature Verification to be configurable with XML::Sig possibly replacing Net::SAML2::XML::Sig at the default eventually - DONE
1111
3. Allow the certificate files to be provided as text strings to allow applications to store the certificates in their native settings if needed
1212
4. We are open to other suggestions or improvements

Changes

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ Revision history for Perl extension Net::SAML2.
22

33
{{$NEXT}}
44

5+
0.46 -- Thu Nov 25 21:53:52 AST 2021
6+
7+
- dd9776e Merge pull request #50 from timlegge/issue-38
8+
- 54cf599 Testapp should display unicode
9+
- ac74ac4 Fixes Issue #49 - Issue verifying XML that includes wide characters
10+
- 5afc7dd Add strict and warnings to tests
11+
- c20ed8c Add strict and warnings and move existing to the stop
12+
- 26c53c1 v0.45
13+
- 5397713 (tag: 0.45) Update for new version
14+
515
0.45 -- Wed Nov 17 17:33:34 AST 2021
616

717
- 594d135 add missing use statement (ziali088)

Makefile.PL

+3-13
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,14 @@ my %WriteMakefileArgs = (
1616
"MIN_PERL_VERSION" => "5.008001",
1717
"NAME" => "Net::SAML2",
1818
"PREREQ_PM" => {
19-
"Carp" => 0,
20-
"Class::Accessor" => 0,
2119
"Crypt::OpenSSL::Bignum" => 0,
22-
"Crypt::OpenSSL::DSA" => 0,
2320
"Crypt::OpenSSL::RSA" => 0,
2421
"Crypt::OpenSSL::Random" => 0,
2522
"Crypt::OpenSSL::Verify" => 0,
2623
"Crypt::OpenSSL::X509" => 0,
27-
"Crypt::PK::ECC" => 0,
2824
"DateTime" => 0,
2925
"DateTime::Format::XSD" => 0,
3026
"DateTime::HiRes" => 0,
31-
"Digest::SHA" => 0,
3227
"Exporter" => 0,
3328
"File::Slurp" => 0,
3429
"HTTP::Request::Common" => 0,
@@ -48,9 +43,9 @@ my %WriteMakefileArgs = (
4843
"URI::QueryParam" => 0,
4944
"XML::Generator" => 0,
5045
"XML::LibXML" => 0,
46+
"XML::Sig" => "0.52",
5147
"XML::Writer" => "0.625",
5248
"base" => 0,
53-
"constant" => 0,
5449
"namespace::autoclean" => 0,
5550
"strict" => 0,
5651
"vars" => 0,
@@ -71,27 +66,22 @@ my %WriteMakefileArgs = (
7166
"URI::URL" => 0,
7267
"XML::LibXML::XPathContext" => 0
7368
},
74-
"VERSION" => "0.45",
69+
"VERSION" => "0.47",
7570
"test" => {
7671
"TESTS" => "t/*.t t/author/*.t"
7772
}
7873
);
7974

8075

8176
my %FallbackPrereqs = (
82-
"Carp" => 0,
83-
"Class::Accessor" => 0,
8477
"Crypt::OpenSSL::Bignum" => 0,
85-
"Crypt::OpenSSL::DSA" => 0,
8678
"Crypt::OpenSSL::RSA" => 0,
8779
"Crypt::OpenSSL::Random" => 0,
8880
"Crypt::OpenSSL::Verify" => 0,
8981
"Crypt::OpenSSL::X509" => 0,
90-
"Crypt::PK::ECC" => 0,
9182
"DateTime" => 0,
9283
"DateTime::Format::XSD" => 0,
9384
"DateTime::HiRes" => 0,
94-
"Digest::SHA" => 0,
9585
"Exporter" => 0,
9686
"File::Slurp" => 0,
9787
"HTTP::Request::Common" => 0,
@@ -124,9 +114,9 @@ my %FallbackPrereqs = (
124114
"XML::Generator" => 0,
125115
"XML::LibXML" => 0,
126116
"XML::LibXML::XPathContext" => 0,
117+
"XML::Sig" => "0.52",
127118
"XML::Writer" => "0.625",
128119
"base" => 0,
129-
"constant" => 0,
130120
"namespace::autoclean" => 0,
131121
"strict" => 0,
132122
"vars" => 0,

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NAME
22
Net::SAML2 - SAML2 bindings and protocol implementation
33

44
VERSION
5-
version 0.45
5+
version 0.47
66

77
SYNOPSIS
88
See TUTORIAL.md for implementation documentation and

TUTORIAL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ The handle_response() of the Net::SAML2::Binding::POST object processes the resp
327327

328328
handle_response is pretty short but does a couple of important things:
329329

330-
1. Calls Net::SAML2::XML::Sig to verify the signatures in the $saml_response XML
330+
1. Calls XML::Sig to verify the signatures in the $saml_response XML
331331
2. Verifies that the certificate that signed the XML was signed by the $cacert
332332

333333
### Get the Assertion from the SAMLResponse XML

cpanfile

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
22

3-
requires "Carp" => "0";
4-
requires "Class::Accessor" => "0";
53
requires "Crypt::OpenSSL::Bignum" => "0";
6-
requires "Crypt::OpenSSL::DSA" => "0";
74
requires "Crypt::OpenSSL::RSA" => "0";
85
requires "Crypt::OpenSSL::Random" => "0";
96
requires "Crypt::OpenSSL::Verify" => "0";
107
requires "Crypt::OpenSSL::X509" => "0";
11-
requires "Crypt::PK::ECC" => "0";
128
requires "DateTime" => "0";
139
requires "DateTime::Format::XSD" => "0";
1410
requires "DateTime::HiRes" => "0";
15-
requires "Digest::SHA" => "0";
1611
requires "Exporter" => "0";
1712
requires "File::Slurp" => "0";
1813
requires "HTTP::Request::Common" => "0";
@@ -32,9 +27,9 @@ requires "URI::Encode" => "0";
3227
requires "URI::QueryParam" => "0";
3328
requires "XML::Generator" => "0";
3429
requires "XML::LibXML" => "0";
30+
requires "XML::Sig" => "0.52";
3531
requires "XML::Writer" => "0.625";
3632
requires "base" => "0";
37-
requires "constant" => "0";
3833
requires "namespace::autoclean" => "0";
3934
requires "perl" => "5.008_001";
4035
requires "strict" => "0";

dist.ini

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ skip = Saml2Test
5959

6060
[Prereqs]
6161
Crypt::OpenSSL::Bignum = 0
62+
XML::Sig = 0.52
6263

6364
[MetaJSON]
6465
[MetaProvides::Package]

0 commit comments

Comments
 (0)