From 8908cbbb4e0359cec4367c2ad7494e2af895b2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Deltombe?= Date: Thu, 6 Sep 2012 09:37:35 +0000 Subject: [PATCH] Send RelayState in SAML logout requests by POST (Lemonldap-523) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthSAML.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthSAML.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthSAML.pm index f19c5da8c..e7fa2ce97 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthSAML.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthSAML.pm @@ -11,7 +11,7 @@ use Lemonldap::NG::Portal::Simple; use Lemonldap::NG::Portal::_SAML; #inherits use Lemonldap::NG::Common::Conf::SAML::Metadata; -our $VERSION = '1.2.0'; +our $VERSION = '1.2.2'; our @ISA = qw(Lemonldap::NG::Portal::_SAML); ## @apmethod int authInit() @@ -1302,6 +1302,9 @@ sub authLogout { $self->{postUrl} = $slo_url; $self->{postFields} = { 'SAMLRequest' => $slo_body }; + # RelayState + $self->{postFields}->{'RelayState'} = $logout->msg_relayState + if ( $logout->msg_relayState ); # Post done in Portal/Simple.pm return PE_OK;