From 9342da8c991a681b1a22ceb712e3fd13d87e1870 Mon Sep 17 00:00:00 2001 From: Ishan Jayamanne Date: Mon, 27 Nov 2023 10:51:41 +1300 Subject: [PATCH] Add a new hook to update the silverstripe request. --- src/Control/SAMLController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Control/SAMLController.php b/src/Control/SAMLController.php index 7146340..77153c2 100644 --- a/src/Control/SAMLController.php +++ b/src/Control/SAMLController.php @@ -166,6 +166,10 @@ public function acs() $this->extend('updateAttributes', $attributes); $this->extend('updateGuid', $guid); + $request = $this->getRequest(); + $this->extend('updateRequest', $request); + $this->setRequest($request); + $fieldToClaimMap = array_flip(Member::config()->claims_field_mappings); // Write a rudimentary member with basic fields on every login, so that we at least have something