Skip to content

Commit bf6a131

Browse files
committed
Change parameters that are passed around
1 parent 1c1a98b commit bf6a131

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)