Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/Net/SAML2/Protocol/LogoutResponse.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ with 'Net::SAML2::Role::ProtocolMessage';
=head1 SYNOPSIS

my $logout_req = Net::SAML2::Protocol::LogoutResponse->new(
issuer => $issuer,
destination => $destination,
status => $status,
response_to => $response_to,
issuer => $issuer,
destination => $destination,
status => $status,
in_response_to => $in_response_to,
);

=head1 DESCRIPTION
Expand Down
12 changes: 6 additions & 6 deletions lib/Net/SAML2/SP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ sub logout_request {
return $logout_req;
}

=head2 logout_response( $destination, $status, $response_to )
=head2 logout_response( $destination, $status, $in_response_to )

Returns a LogoutResponse object created by this SP, intended for the
given destination, which should be the identity URI of the IdP.
Expand All @@ -420,14 +420,14 @@ LogoutRequest.
=cut

sub logout_response {
my ($self, $destination, $status, $response_to) = @_;
my ($self, $destination, $status, $in_response_to) = @_;

my $status_uri = Net::SAML2::Protocol::LogoutResponse->status_uri($status);
my $logout_req = Net::SAML2::Protocol::LogoutResponse->new(
issuer => $self->issuer,
destination => $destination,
status => $status_uri,
response_to => $response_to,
issuer => $self->issuer,
destination => $destination,
status => $status_uri,
in_response_to => $in_response_to,
);

return $logout_req;
Expand Down
2 changes: 1 addition & 1 deletion t/author/01-confirm-schema.t
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ my $logout_resp = Net::SAML2::Protocol::LogoutResponse->new(
issuer => 'https://netsaml2-testapp.local',
destination => 'destination',
status => 'status',
response_to => 'NETSAML2_dkajhdahdkhdkdj',
in_response_to => 'NETSAML2_dkajhdahdkhdkdj',
)->as_xml;

$post_request = $post->sign_xml($logout_resp);
Expand Down