From ce55be70b0288fdf315cf004d48c02e036fe5729 Mon Sep 17 00:00:00 2001
From: Marko Ivancic <cicnavi@gmail.com>
Date: Sat, 27 Mar 2021 20:13:28 +0100
Subject: [PATCH] Make inResponseTo available in auth state (#1447)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Marko Ivančić <marko.ivancic@srce.hr>
---
 modules/saml/www/sp/saml2-acs.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/saml/www/sp/saml2-acs.php b/modules/saml/www/sp/saml2-acs.php
index 9c56cfd5d..585705c6e 100644
--- a/modules/saml/www/sp/saml2-acs.php
+++ b/modules/saml/www/sp/saml2-acs.php
@@ -262,6 +262,7 @@ if ($expire !== null) {
 $state['saml:sp:prevAuth'] = [
     'id'     => $response->getId(),
     'issuer' => $issuer,
+    'inResponseTo' => $response->getInResponseTo(),
 ];
 if (isset($state['\SimpleSAML\Auth\Source.ReturnURL'])) {
     $state['saml:sp:prevAuth']['redirect'] = $state['\SimpleSAML\Auth\Source.ReturnURL'];
-- 
GitLab