Skip to content

Commit d81549a

Browse files
committed
Implement new API for ACS/SLO data in metadata
Supports more control over which indexes go where for AssertionConsumerServices and you can change which one the default is as well. The old constuctor syntax is still supported but translated to this new setup. my $sp = Net::SAML2::SP->new( single_logout_service => [ { Binding => BINDING_HTTP_REDIRECT, Location => 'https://foo.nl', }, ], AssertionConsumerService => [ # order decides index? { Binding => BINDING_HTTP_ARTIFACT, Location => ..., # index 1 }, { Binding => BINDING_HTTP_POST, Location => ..., # index 2 isDefault => 1, } ], ..., ); Closes: #46 Signed-off-by: Wesley Schwengle <wesley@opndev.io>
1 parent 01d5fb7 commit d81549a

File tree

5 files changed

+324
-105
lines changed

5 files changed

+324
-105
lines changed

Makefile.PL

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ my %WriteMakefileArgs = (
1616
"MIN_PERL_VERSION" => "5.008001",
1717
"NAME" => "Net::SAML2",
1818
"PREREQ_PM" => {
19+
"Carp" => 0,
1920
"Crypt::OpenSSL::Bignum" => 0,
2021
"Crypt::OpenSSL::RSA" => 0,
2122
"Crypt::OpenSSL::Random" => 0,
@@ -42,6 +43,7 @@ my %WriteMakefileArgs = (
4243
"URI" => 0,
4344
"URI::Encode" => 0,
4445
"URI::QueryParam" => 0,
46+
"URN::OASIS::SAML2" => "0.002",
4547
"XML::Enc" => "0.05",
4648
"XML::Generator" => 0,
4749
"XML::LibXML" => 0,
@@ -77,6 +79,7 @@ my %WriteMakefileArgs = (
7779

7880

7981
my %FallbackPrereqs = (
82+
"Carp" => 0,
8083
"Crypt::OpenSSL::Bignum" => 0,
8184
"Crypt::OpenSSL::RSA" => 0,
8285
"Crypt::OpenSSL::Random" => 0,
@@ -115,6 +118,7 @@ my %FallbackPrereqs = (
115118
"URI::Encode" => 0,
116119
"URI::QueryParam" => 0,
117120
"URI::URL" => 0,
121+
"URN::OASIS::SAML2" => "0.002",
118122
"XML::Enc" => "0.05",
119123
"XML::Generator" => 0,
120124
"XML::LibXML" => 0,

cpanfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
22

3+
requires "Carp" => "0";
34
requires "Crypt::OpenSSL::Bignum" => "0";
45
requires "Crypt::OpenSSL::RSA" => "0";
56
requires "Crypt::OpenSSL::Random" => "0";
@@ -26,6 +27,7 @@ requires "MooseX::Types::URI" => "0";
2627
requires "URI" => "0";
2728
requires "URI::Encode" => "0";
2829
requires "URI::QueryParam" => "0";
30+
requires "URN::OASIS::SAML2" => "0.002";
2931
requires "XML::Enc" => "0.05";
3032
requires "XML::Generator" => "0";
3133
requires "XML::LibXML" => "0";

dist.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ XML::Writer = 0.625
5959
XML::LibXML::XPathContext = 0
6060
; Here because it isn't provided by Crypt::OpenSSL::RSA
6161
Crypt::OpenSSL::Bignum = 0
62+
URN::OASIS::SAML2 = 0.002
6263

6364
[Prereqs / TestRequires]
6465
Test::Pod = 1.14

0 commit comments

Comments
 (0)