Skip to content

Commit

Permalink
swap ssp-sp3.local and pwmanager.local ports
Browse files Browse the repository at this point in the history
was: ssp-sp3.local:8084 and pwmanager.local:8083
now: ssp-sp3.local:8083 and pwmanager.local:8084
The reason is twofold: (1) this makes the ssp-sp[n].local container ports contiguous: 8081, 8082, and 8083, and (2) some of the references to ssp-sp3.local still had 8083 as was assigned in the simplesamlphp-module-sildisco repo.
  • Loading branch information
briskt committed May 22, 2024
1 parent 69fa5e0 commit 3fc98de
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions actions-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ 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://pwmanager.local:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
MFA_SETUP_URL: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub-custom-port"
REMEMBER_ME_SECRET: "12345"
PROFILE_URL: "http://pwmanager:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
PROFILE_URL: "http://pwmanager.local/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"
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
Expand Down
2 changes: 1 addition & 1 deletion development/sp-local/config/authsources-pwmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

'mfa-idp' => [
'saml:SP',
'entityID' => 'http://pwmanager.local:8083',
'entityID' => 'http://pwmanager.local:8084',
'idp' => 'http://ssp-idp1.local:8085',
'discoURL' => null,
'NameIDPolicy' => "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ 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://pwmanager.local:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
MFA_SETUP_URL: "http://pwmanager.local:8084/module.php/core/authenticate.php?as=ssp-hub-custom-port"
REMEMBER_ME_SECRET: "12345"
PROFILE_URL: "http://pwmanager:8083/module.php/core/authenticate.php?as=ssp-hub-custom-port"
PROFILE_URL: "http://pwmanager.local:8084/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"
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
Expand Down Expand Up @@ -342,7 +342,7 @@ services:
# Utilize custom metadata
- ./development/sp3-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
ports:
- "8084:80"
- "8083:80"
env_file:
- local.env
environment:
Expand All @@ -366,7 +366,7 @@ services:
# Utilize custom metadata
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
ports:
- "8083:80"
- "8084:80"
environment:
- [email protected]
- ADMIN_PASS=sp1
Expand Down
7 changes: 4 additions & 3 deletions docs/development.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Three SPs, a hub (a combined IdP and SP) and three IdPs get spun up by docker-compose. In order for this to work, you will need to edit your hosts file to include entries for the following domains ...
Four SPs, a hub (a combined IdP and SP) and three IdPs get spun up by docker-compose. In order for this to work, you will need to edit your hosts file to include entries for the following domains ...
* ssp-sp1.local # to be used with port 8081
* ssp-sp2.local # to be used with port 8082
* ssp-sp3.local # to be used with port 8084
* ssp-sp2.local # to be used with port 8082
* ssp-sp3.local # to be used with port 8083
* pwmanager.local # to be used with port 8084
* ssp-hub.local
* ssp-idp1.local # to be used with port 8085
* ssp-idp2.local # to be used with port 8086
Expand Down

0 comments on commit 3fc98de

Please sign in to comment.