File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,9 @@ FROM phpfpm AS php-adfsmfa
3030# }
3131# with
3232# if ($_REQUEST['Context'] !== null) {
33- # $state['adfsmfa:context '] = $_REQUEST['Context'];
33+ # $state['saml:RelayState '] = $_REQUEST['Context'];
3434# }
35- RUN sed -i 's/if ($username !== null) {\n\s *\$ state\[ ' core:username'\] = \$ username;\n\s *}/if ($_REQUEST[' Context'] !== null) {\n $state[' adfsmfa:context'] = $_REQUEST[' Context'];\n }/' /var/www/html/modules/saml/src/IdP/SAML2.php
36- # In the file /var/www/html/modules/saml/src/IdP/SAML2.php, replace the block
37- # $relayState = $state['saml:RelayState'];
38- # with
39- # $relayState = $state['adfsmfa:context'];
40- RUN sed -i "s/\$ relayState = \$ state\[ 'saml:RelayState'\] ;/\$ relayState = \$ state['adfsmfa:context'];/" /var/www/html/modules/saml/src/IdP/SAML2.php
35+ RUN sed -i 's/if ($username !== null) {\n\s *\$ state\[ ' core:username'\] = \$ username;\n\s *}/if ($_REQUEST[' Context'] !== null) {\n $state[' saml:RelayState'] = $_REQUEST[' Context'];\n }/' /var/www/html/modules/saml/src/IdP/SAML2.php
4136# In the file /var/www/html/vendor/simplesamlphp/saml2/src/Binding/HTTPPost.php, replace the block
4237# if ($relayState !== null) {
4338# $post['RelayState'] = $relayState;
You can’t perform that action at this time.
0 commit comments