@@ -73,6 +73,17 @@ SP contact email address
73
73
SP organization url. This is optional and url will be used as in
74
74
previous versions if this is not provided.
75
75
76
+ =item B<authnreq_signed >
77
+
78
+ Specifies in the metadata whether the SP signs the AuthnRequest
79
+ Optional (0 or 1) defaults to 1 (TRUE) if not specified.
80
+
81
+ =item B<want_assertions_signed >
82
+
83
+ Specifies in the metadata whether the SP wants the Assertion from
84
+ the IdP to be signed
85
+ Optional (0 or 1) defaults to 1 (TRUE) if not specified.
86
+
76
87
=back
77
88
78
89
=cut
@@ -90,6 +101,9 @@ has 'org_url' => (isa => 'Str', is => 'ro', required => 0);
90
101
91
102
has ' _cert_text' => (isa => ' Str' , is => ' rw' , required => 0);
92
103
104
+ has ' authnreq_signed' => (isa => ' Bool' , is => ' ro' , required => 0);
105
+ has ' want_assertions_signed' => (isa => ' Bool' , is => ' ro' , required => 0);
106
+
93
107
=head2 BUILD ( hashref of the parameters passed to the constructor )
94
108
95
109
Called after the object is created to load the cert from a file
@@ -296,8 +310,8 @@ sub metadata {
296
310
entityID => $self -> id },
297
311
$x -> SPSSODescriptor(
298
312
$md ,
299
- { AuthnRequestsSigned => ' 1' ,
300
- WantAssertionsSigned => ' 1' ,
313
+ { AuthnRequestsSigned => defined ( $self -> authnreq_signed) ? $self -> authnreq_signed : ' 1' ,
314
+ WantAssertionsSigned => defined ( $self -> want_assertions_signed) ? $self -> want_assertions_signed : ' 1' ,
301
315
errorURL => $self -> url . ' /saml/error' ,
302
316
protocolSupportEnumeration => ' urn:oasis:names:tc:SAML:2.0:protocol' },
303
317
$x -> KeyDescriptor(
0 commit comments