File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ around BUILDARGS => sub {
179
179
180
180
my %params = @_ ;
181
181
if ($params {nameid_format } && !defined $params {nameidpolicy_format }) {
182
+ warn " You are using nameid_format, this field has changed to "
183
+ . " nameidpolicy_format. This field will be used for other purposes "
184
+ . " in an upcoming release. Please change your code ASAP." ;
182
185
$params {nameidpolicy_format } = $params {nameid_format };
183
186
}
184
187
Original file line number Diff line number Diff line change @@ -322,10 +322,10 @@ sub authn_request {
322
322
my (%params ) = @_ ;
323
323
324
324
return Net::SAML2::Protocol::AuthnRequest-> new(
325
- issueinstant => DateTime-> now,
326
- issuer => $self -> id,
327
- destination => $destination ,
328
- nameid_format => $nameid_format || ' ' ,
325
+ issueinstant => DateTime-> now,
326
+ issuer => $self -> id,
327
+ destination => $destination ,
328
+ nameidpolicy_format => $nameid_format || ' ' ,
329
329
%params ,
330
330
);
331
331
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ $override->override('Net::SAML2::Protocol::AuthnRequest::_build_id' =>
17
17
{
18
18
my ($ar , $xp ) = net_saml2_authnreq(
19
19
nameid => ' mynameid' ,
20
- nameid_format =>
20
+ nameidpolicy_format =>
21
21
' urn:oasis:names:tc:SAML:2.0:nameid-format:persistent' ,
22
22
nameid_allow_create => 1,
23
23
issuer_namequalifier => ' bar' ,
You can’t perform that action at this time.
0 commit comments