@@ -153,6 +153,14 @@ has 'org_display_name' => (isa => 'Str', is => 'ro', required => 1);
153
153
has ' org_contact' => (isa => ' Str' , is => ' ro' , required => 1);
154
154
has ' org_url' => (isa => ' Str' , is => ' ro' , required => 0);
155
155
156
+ # These are no longer in use, but are not removed by the off change that
157
+ # someone that extended us or added a role to us with these params.
158
+ has ' slo_url_soap' => (isa => ' Str' , is => ' ro' , required => 0);
159
+ has ' slo_url_post' => (isa => ' Str' , is => ' ro' , required => 0);
160
+ has ' slo_url_redirect' => (isa => ' Str' , is => ' ro' , required => 0);
161
+ has ' acs_url_post' => (isa => ' Str' , is => ' ro' , required => 0);
162
+ has ' acs_url_artifact' => (isa => ' Str' , is => ' ro' , required => 0);
163
+
156
164
has ' _cert_text' => (isa => ' Str' , is => ' ro' , init_arg => undef , builder => ' _build_cert_text' , lazy => 1);
157
165
158
166
has ' authnreq_signed' => (isa => ' Bool' , is => ' ro' , required => 0, default => 1);
@@ -172,7 +180,7 @@ around BUILDARGS => sub {
172
180
if (!$args {single_logout_service }) {
173
181
# warn "Deprecation warning, please upgrade your code to use ..";
174
182
my @slo ;
175
- if (my $slo = delete $args {slo_url_soap }) {
183
+ if (my $slo = $args {slo_url_soap }) {
176
184
push (
177
185
@slo ,
178
186
{
@@ -181,7 +189,7 @@ around BUILDARGS => sub {
181
189
}
182
190
);
183
191
}
184
- if (my $slo = delete $args {slo_url_redirect }) {
192
+ if (my $slo = $args {slo_url_redirect }) {
185
193
push (
186
194
@slo ,
187
195
{
@@ -190,7 +198,7 @@ around BUILDARGS => sub {
190
198
}
191
199
);
192
200
}
193
- if (my $slo = delete $args {slo_url_post }) {
201
+ if (my $slo = $args {slo_url_post }) {
194
202
push (
195
203
@slo ,
196
204
{
@@ -219,7 +227,7 @@ around BUILDARGS => sub {
219
227
}
220
228
);
221
229
}
222
- if (my $acs = delete $args {acs_url_artifact }) {
230
+ if (my $acs = $args {acs_url_artifact }) {
223
231
push (
224
232
@acs ,
225
233
{
@@ -459,7 +467,7 @@ sub generate_metadata {
459
467
' urn:oasis:names:tc:SAML:2.0:protocol' ,
460
468
},
461
469
462
- $self -> _generate_keydescriptors ($x ),
470
+ $self -> _generate_key_descriptors ($x ),
463
471
464
472
$self -> _generate_single_logout_service($x ),
465
473
@@ -490,7 +498,7 @@ sub generate_metadata {
490
498
);
491
499
}
492
500
493
- sub _generate_keydescriptors {
501
+ sub _generate_key_descriptors {
494
502
my $self = shift ;
495
503
my $x = shift ;
496
504
@@ -523,13 +531,7 @@ sub _generate_keydescriptors {
523
531
sub _generate_single_logout_service {
524
532
my $self = shift ;
525
533
my $x = shift ;
526
-
527
- my @slo ;
528
- foreach (@{ $self -> single_logout_service }) {
529
- push (@slo , $x -> SingleLogoutService($md , $_ ));
530
- }
531
- return @slo ;
532
-
534
+ return map { $x -> SingleLogoutService($md , $_ ) } @{ $self -> single_logout_service };
533
535
}
534
536
535
537
sub _generate_assertion_consumer_service {
@@ -560,7 +562,7 @@ Returns the metadata XML document for this SP.
560
562
=cut
561
563
562
564
sub metadata {
563
- my ( $self ) = @_ ;
565
+ my $self = shift ;
564
566
565
567
my $metadata = $self -> generate_metadata();
566
568
return $metadata unless $self -> sign_metadata;
0 commit comments