Skip to content

Commit

Permalink
remove MFA_SETUP_URL_FOR_TESTS and use PROFILE_URL_FOR_TESTS instead
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 10, 2024
1 parent 5306778 commit 7ef8d21
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions actions-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ services:
- test-browser
environment:
- PROFILE_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
- MFA_SETUP_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
- [email protected]
- ADMIN_PASS=b
- SECRET_SALT=abc123
Expand Down Expand Up @@ -96,7 +95,6 @@ services:
ID_BROKER_BASE_URI: "dummy"
ID_BROKER_TRUSTED_IP_RANGES: "192.168.0.1/8"
MFA_SETUP_URL: "http://pwmanager.local:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
MFA_SETUP_URL_FOR_TESTS: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub"
REMEMBER_ME_SECRET: "12345"
PROFILE_URL: "http://pwmanager:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
PROFILE_URL_FOR_TESTS: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub"
Expand Down
2 changes: 1 addition & 1 deletion development/idp-local/metadata/saml20-idp-hosted.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@
// Copy configuration for port 80 and modify host and profileUrl.
$metadata['http://ssp-idp1.local'] = $metadata['http://ssp-idp1.local:8085'];
$metadata['http://ssp-idp1.local']['host'] = 'ssp-idp1.local';
$metadata['http://ssp-idp1.local']['authproc'][10]['mfaSetupUrl'] = Env::get('MFA_SETUP_URL_FOR_TESTS');
$metadata['http://ssp-idp1.local']['authproc'][10]['mfaSetupUrl'] = Env::get('PROFILE_URL_FOR_TESTS');
$metadata['http://ssp-idp1.local']['authproc'][30]['profileUrl'] = Env::get('PROFILE_URL_FOR_TESTS');
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ services:
environment:
- COMPOSER_CACHE_DIR=/composer
- PROFILE_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
- MFA_SETUP_URL_FOR_TESTS=http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
- [email protected]
- ADMIN_PASS=b
- SECRET_SALT=abc123
Expand Down Expand Up @@ -173,7 +172,6 @@ services:
ID_BROKER_BASE_URI: "dummy"
ID_BROKER_TRUSTED_IP_RANGES: "192.168.0.1/8"
MFA_SETUP_URL: "http://pwmanager.local:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
MFA_SETUP_URL_FOR_TESTS: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub"
REMEMBER_ME_SECRET: "12345"
PROFILE_URL: "http://pwmanager:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
PROFILE_URL_FOR_TESTS: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub"
Expand Down
4 changes: 2 additions & 2 deletions features/bootstrap/MfaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ public function iClickTheSetUpMfaButton()
*/
public function iShouldEndUpAtTheMfaSetupUrl()
{
$mfaSetupUrl = Env::get('MFA_SETUP_URL_FOR_TESTS');
Assert::assertNotEmpty($mfaSetupUrl, 'No MFA_SETUP_URL_FOR_TESTS provided');
$mfaSetupUrl = Env::get('PROFILE_URL_FOR_TESTS');
Assert::assertNotEmpty($mfaSetupUrl, 'No PROFILE_URL_FOR_TESTS provided');
$currentUrl = $this->session->getCurrentUrl();
Assert::assertStringStartsWith(
$mfaSetupUrl,
Expand Down

0 comments on commit 7ef8d21

Please sign in to comment.