Skip to content

Commit

Permalink
rename www -> public [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 14, 2024
1 parent 213247d commit 6186942
Show file tree
Hide file tree
Showing 49 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ COPY modules/material/themes/material/mfa/* $SSP_PATH/modules/mfa/templates/
COPY modules/material/themes/material/profilereview/* $SSP_PATH/modules/profilereview/templates/

# Copy in SSP override files
RUN mv $SSP_PATH/www/index.php $SSP_PATH/www/ssp-index.php
COPY dockerbuild/ssp-overrides/index.php $SSP_PATH/www/index.php
RUN mv $SSP_PATH/www/saml2/idp/SingleLogoutService.php $SSP_PATH/www/saml2/idp/ssp-SingleLogoutService.php
COPY dockerbuild/ssp-overrides/SingleLogoutService.php $SSP_PATH/www/saml2/idp/SingleLogoutService.php
RUN mv $SSP_PATH/public/index.php $SSP_PATH/public/ssp-index.php
COPY dockerbuild/ssp-overrides/index.php $SSP_PATH/public/index.php
RUN mv $SSP_PATH/public/saml2/idp/SingleLogoutService.php $SSP_PATH/public/saml2/idp/ssp-SingleLogoutService.php
COPY dockerbuild/ssp-overrides/SingleLogoutService.php $SSP_PATH/public/saml2/idp/SingleLogoutService.php
COPY dockerbuild/ssp-overrides/saml20-idp-remote.php $SSP_PATH/metadata/saml20-idp-remote.php
COPY dockerbuild/ssp-overrides/saml20-sp-remote.php $SSP_PATH/metadata/saml20-sp-remote.php
COPY dockerbuild/config/* $SSP_PATH/config/
COPY dockerbuild/ssp-overrides/id.php $SSP_PATH/www/id.php
COPY dockerbuild/ssp-overrides/id.php $SSP_PATH/public/id.php
COPY dockerbuild/ssp-overrides/announcement.php $SSP_PATH/announcement/announcement.php
COPY tests /data/tests

RUN cp $SSP_PATH/modules/sildisco/src/SSOService.php $SSP_PATH/www/saml2/idp/
RUN cp $SSP_PATH/modules/sildisco/src/SSOService.php $SSP_PATH/public/saml2/idp/
RUN chmod a+x /data/run.sh /data/run-tests.sh

ADD https://github.com/silinternational/config-shim/releases/latest/download/config-shim.gz config-shim.gz
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ test-integration:
docker compose run --rm test ./run-integration-tests.sh

copyJsLib:
cp ./node_modules/@simplewebauthn/browser/dist/bundle/index.umd.min.js ./modules/mfa/www/simplewebauthn/browser.js
cp ./node_modules/@simplewebauthn/browser/LICENSE.md ./modules/mfa/www/simplewebauthn/LICENSE.md
cp ./node_modules/@simplewebauthn/browser/dist/bundle/index.umd.min.js ./modules/mfa/public/simplewebauthn/browser.js
cp ./node_modules/@simplewebauthn/browser/LICENSE.md ./modules/mfa/public/simplewebauthn/LICENSE.md

deps:
docker compose run --rm node npm install --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Update `/simplesamlphp/config/config.php`:
'theme.color-scheme' => ['indigo-purple'|'blue_grey-teal'|'red-teal'|'orange-light_blue'|'brown-orange'|'teal-blue']
```
The login page looks for `/simplesamlphp/www/logo.png` which is **NOT** provided by default.
The login page looks for `/simplesamlphp/public/logo.png` which is **NOT** provided by default.
##### Analytics
Expand Down
2 changes: 1 addition & 1 deletion dockerbuild/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -x
set -e

# This is a temporary fix (bug workaround) until ssp 2.0 is in use
sed -i 's_\(\\SimpleSAML\\Error\\Assertion::installHandler()\)_// \1 _' /data/vendor/simplesamlphp/simplesamlphp/www/_include.php
sed -i 's_\(\\SimpleSAML\\Error\\Assertion::installHandler()\)_// \1 _' /data/vendor/simplesamlphp/simplesamlphp/public/_include.php

# establish a signal handler to catch the SIGTERM from a 'docker stop'
# reference: https://medium.com/@gchudnov/trapping-signals-in-docker-containers-7a57fdda7d86
Expand Down
4 changes: 2 additions & 2 deletions dockerbuild/vhost.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<VirtualHost _default_:80>
DocumentRoot /data/vendor/simplesamlphp/simplesamlphp/www/
DocumentRoot /data/vendor/simplesamlphp/simplesamlphp/public/
RewriteEngine On
DirectoryIndex index.php

<Directory /data/vendor/simplesamlphp/simplesamlphp/www/>
<Directory /data/vendor/simplesamlphp/simplesamlphp/public/>
Options FollowSymLinks
AllowOverride All
Require all granted
Expand Down
4 changes: 2 additions & 2 deletions docs/the_hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ The hub will need its certs, `config.php` and `authsources.php` files as a norma

Other files it will need are as follows ...
* The files in the `./src` folder will need to go into `/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco/src`
* The files in the `./www` folder will need to go into `/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco/www`
* The `./sspoverrides/www_saml2_idp/SSOService.php` file will need overwrite the same out-of-the-box file in `/data/vendor/simplesamlphp/simplesamlphp/www/saml2/idp/`
* The files in the `./public` folder will need to go into `/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco/public`
* The `./sspoverrides/www_saml2_idp/SSOService.php` file will need overwrite the same out-of-the-box file in `/data/vendor/simplesamlphp/simplesamlphp/public/saml2/idp/`

### Metadata files
The hub should use the `saml20-*-remote.php` files from [ssp-base](https://github.com/silinternational/ssp-base) in `/data/vendor/simplesamlphp/simplesamlphp/metadata/`. These pull in metadata from all the files named `idp-*.php` and `sp-*.php` respectively, including those in sub-folders.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Custom IdP discovery service. Built-in service is in modules/saml/www/disco.php
* Custom IdP discovery service. Built-in service is in modules/saml/public/disco.php
*/

$discoHandler = new \SimpleSAML\Module\sildisco\IdPDisco(['saml20-idp-remote'], 'saml');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* Borrowed and modified from simplesamlphp/www/saml2/idp/metadata.php
* Borrowed and modified from simplesamlphp/public/saml2/idp/metadata.php
*/

require_once('../www/_include.php');
require_once('../public/_include.php');

use SAML2\Constants;
use SimpleSAML\Utils\Auth as Auth;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Modified version of modules/saml/www/sp/discoresp.php
* Modified version of modules/saml/public/sp/discoresp.php
* 2024-06-06 -- Merged with simplesamlphp 1.19.8, lines marked with GTIS are modified
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Assertion consumer service handler for SAML 2.0 SP authentication client.
*
* Similar to modules/saml/www/sp/saml2-acs.php
* Similar to modules/saml/public/sp/saml2-acs.php
* 2024-06-06 -- Merged with simplesamlphp 1.19.8, lines marked with GTIS are modified
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* This endpoint handles both logout requests and logout responses.
*
* Similar to modules/saml/www/sp/saml2-logout.php
* Similar to modules/saml/public/sp/saml2-logout.php
* 2024-06-06 -- Merged with simplesamlphp 1.19.8, lines marked with GTIS are modified
*/

Expand Down
2 changes: 1 addition & 1 deletion modules/sildisco/src/SSOService.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
*
* Note: This has been copied from the core code (www/saml2/idp/SSOService.php version 1.19.6)
* Note: This has been copied from the core code (public/saml2/idp/SSOService.php version 1.19.6)
* and modified to call a different authentication class/method
*
* Original comments ...
Expand Down

0 comments on commit 6186942

Please sign in to comment.