-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed mfa.feature:19 test scenario by defining a new pwmanager service
- Loading branch information
Showing
5 changed files
with
91 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,11 @@ services: | |
- ssp-idp1.local | ||
- ssp-idp2.local | ||
- ssp-sp1.local | ||
- pwmanager.local | ||
- test-browser | ||
environment: | ||
- PROFILE_URL_FOR_TESTS=http://ssp-sp1.local/module.php/core/authenticate.php?as=ssp-hub | ||
- MFA_SETUP_URL_FOR_TESTS=http://ssp-sp1.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 | ||
|
@@ -94,8 +95,8 @@ services: | |
ID_BROKER_ASSERT_VALID_IP: "false" | ||
ID_BROKER_BASE_URI: "dummy" | ||
ID_BROKER_TRUSTED_IP_RANGES: "192.168.0.1/8" | ||
MFA_SETUP_URL: "http://ssp-hub-sp1:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port" | ||
MFA_SETUP_URL_FOR_TESTS: "http://ssp-sp1.local/module.php/core/authenticate.php?as=ssp-hub" | ||
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://ssp-hub-sp1:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port" | ||
PROFILE_URL_FOR_TESTS: "http://ssp-sp1.local/module.php/core/authenticate.php?as=ssp-hub" | ||
|
@@ -155,3 +156,25 @@ services: | |
SHOW_SAML_ERRORS: "true" | ||
SAML20_IDP_ENABLE: "false" | ||
ADMIN_PROTECT_INDEX_PAGE: "false" | ||
|
||
pwmanager.local: | ||
image: silintl/ssp-base:develop | ||
volumes: | ||
# Utilize custom certs | ||
- ./development/sp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert | ||
|
||
# Utilize custom configs | ||
- ./development/sp-local/config/authsources-pwmanager.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php | ||
|
||
# Utilize custom metadata | ||
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php | ||
environment: | ||
- [email protected] | ||
- ADMIN_PASS=sp1 | ||
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED | ||
- SECRET_SALT=NOT-a-secret-k49fjfkw73hjf9t87wjiw | ||
- SECURE_COOKIE=false | ||
- SHOW_SAML_ERRORS=true | ||
- SAML20_IDP_ENABLE=false | ||
- ADMIN_PROTECT_INDEX_PAGE=false | ||
- THEME_USE=default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
$config = [ | ||
|
||
// This is a authentication source which handles admin authentication. | ||
'admin' => [ | ||
// The default is to use core:AdminPassword, but it can be replaced with | ||
// any authentication source. | ||
|
||
'core:AdminPassword', | ||
], | ||
|
||
'mfa-idp' => [ | ||
'saml:SP', | ||
'entityID' => 'http://pwmanager.local:8083', | ||
'idp' => 'http://ssp-idp1.local:8085', | ||
'discoURL' => null, | ||
'NameIDPolicy' => "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent", | ||
], | ||
|
||
'mfa-idp-no-port' => [ | ||
'saml:SP', | ||
'entityID' => 'http://pwmanager.local', | ||
'idp' => 'http://ssp-idp1.local', | ||
'discoURL' => null, | ||
'NameIDPolicy' => "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent", | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,12 @@ services: | |
- ssp-idp1.local | ||
- ssp-idp2.local | ||
- ssp-sp1.local | ||
- pwmanager.local | ||
- test-browser | ||
environment: | ||
- COMPOSER_CACHE_DIR=/composer | ||
- PROFILE_URL_FOR_TESTS=http://ssp-sp1.local/module.php/core/authenticate.php?as=ssp-hub | ||
- MFA_SETUP_URL_FOR_TESTS=http://ssp-sp1.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 | ||
|
@@ -171,8 +172,8 @@ services: | |
ID_BROKER_ASSERT_VALID_IP: "false" | ||
ID_BROKER_BASE_URI: "dummy" | ||
ID_BROKER_TRUSTED_IP_RANGES: "192.168.0.1/8" | ||
MFA_SETUP_URL: "http://ssp-hub-sp1:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port" | ||
MFA_SETUP_URL_FOR_TESTS: "http://ssp-sp1.local/module.php/core/authenticate.php?as=ssp-hub" | ||
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://ssp-hub-sp1:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port" | ||
PROFILE_URL_FOR_TESTS: "http://ssp-sp1.local/module.php/core/authenticate.php?as=ssp-hub" | ||
|
@@ -273,7 +274,31 @@ services: | |
SHOW_SAML_ERRORS: "true" | ||
SAML20_IDP_ENABLE: "false" | ||
ADMIN_PROTECT_INDEX_PAGE: "false" | ||
|
||
|
||
pwmanager.local: | ||
image: silintl/ssp-base:develop | ||
volumes: | ||
# Utilize custom certs | ||
- ./development/sp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert | ||
|
||
# Utilize custom configs | ||
- ./development/sp-local/config/authsources-pwmanager.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php | ||
|
||
# Utilize custom metadata | ||
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php | ||
ports: | ||
- "8083:80" | ||
environment: | ||
- [email protected] | ||
- ADMIN_PASS=sp1 | ||
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED | ||
- SECRET_SALT=NOT-a-secret-k49fjfkw73hjf9t87wjiw | ||
- SECURE_COOKIE=false | ||
- SHOW_SAML_ERRORS=true | ||
- SAML20_IDP_ENABLE=false | ||
- ADMIN_PROTECT_INDEX_PAGE=false | ||
- THEME_USE=default | ||
|
||
networks: | ||
default: | ||
driver: bridge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters