Skip to content

Commit

Permalink
remove ADMIN_PROTECT_INDEX_PAGE option
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Mar 28, 2024
1 parent fd3a2e9 commit 4eb6baf
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 25 deletions.
2 changes: 0 additions & 2 deletions actions-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ services:
SECRET_SALT: "not-secret-h57fjemb&dn^nsJFGNjweJ"
IDP_NAME: "Hub"
SECURE_COOKIE: "false"
ADMIN_PROTECT_INDEX_PAGE: "false"
SHOW_SAML_ERRORS: "true"
THEME_USE: "material:material"
THEME_COLOR_SCHEME: "orange-light_blue"
Expand Down Expand Up @@ -100,4 +99,3 @@ services:
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
SAML20_IDP_ENABLE: "false"
ADMIN_PROTECT_INDEX_PAGE: "false"
3 changes: 1 addition & 2 deletions development/idp-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
// Defaults provided if not defined in environment
$BASE_URL_PATH = Env::get('BASE_URL_PATH', '/');
$ADMIN_NAME = Env::get('ADMIN_NAME', 'SAML Admin');
$ADMIN_PROTECT_INDEX_PAGE = Env::get('ADMIN_PROTECT_INDEX_PAGE', true);
$SHOW_SAML_ERRORS = Env::get('SHOW_SAML_ERRORS', false);
$TIMEZONE = Env::get('TIMEZONE', 'GMT');
$ENABLE_DEBUG = Env::get('ENABLE_DEBUG', false);
Expand Down Expand Up @@ -242,7 +241,7 @@
* Set this options to true if you want to require administrator password to access the web interface
* or the metadata pages, respectively.
*/
'admin.protectindexpage' => $ADMIN_PROTECT_INDEX_PAGE,
'admin.protectindexpage' => true,
'admin.protectmetadata' => true,

/*
Expand Down
3 changes: 1 addition & 2 deletions development/idp2-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
// Defaults provided if not defined in environment
$BASE_URL_PATH = Env::get('BASE_URL_PATH', '/');
$ADMIN_NAME = Env::get('ADMIN_NAME', 'SAML Admin');
$ADMIN_PROTECT_INDEX_PAGE = Env::get('ADMIN_PROTECT_INDEX_PAGE', true);
$SHOW_SAML_ERRORS = Env::get('SHOW_SAML_ERRORS', false);
$TIMEZONE = Env::get('TIMEZONE', 'GMT');
$ENABLE_DEBUG = Env::get('ENABLE_DEBUG', false);
Expand Down Expand Up @@ -171,7 +170,7 @@
* You can also put a hash here; run "bin/pwgen.php" to generate one.
*/
'auth.adminpassword' => $ADMIN_PASS,
'admin.protectindexpage' => $ADMIN_PROTECT_INDEX_PAGE,
'admin.protectindexpage' => true,
'admin.protectmetadata' => true,

/*
Expand Down
3 changes: 1 addition & 2 deletions development/sp-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// Defaults provided if not defined in environment
$BASE_URL_PATH = Env::get('BASE_URL_PATH', '/');
$ADMIN_NAME = Env::get('ADMIN_NAME', 'SAML Admin');
$ADMIN_PROTECT_INDEX_PAGE = Env::get('ADMIN_PROTECT_INDEX_PAGE', true);
$SHOW_SAML_ERRORS = Env::get('SHOW_SAML_ERRORS', false);
$TIMEZONE = Env::get('TIMEZONE', 'GMT');
$ENABLE_DEBUG = Env::get('ENABLE_DEBUG', false);
Expand Down Expand Up @@ -141,7 +140,7 @@
* You can also put a hash here; run "bin/pwgen.php" to generate one.
*/
'auth.adminpassword' => $ADMIN_PASS,
'admin.protectindexpage' => $ADMIN_PROTECT_INDEX_PAGE,
'admin.protectindexpage' => true,
'admin.protectmetadata' => true,

/*
Expand Down
3 changes: 1 addition & 2 deletions development/sp2-local/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// Defaults provided if not defined in environment
$BASE_URL_PATH = Env::get('BASE_URL_PATH', '/');
$ADMIN_NAME = Env::get('ADMIN_NAME', 'SAML Admin');
$ADMIN_PROTECT_INDEX_PAGE = Env::get('ADMIN_PROTECT_INDEX_PAGE', true);
$SHOW_SAML_ERRORS = Env::get('SHOW_SAML_ERRORS', false);
$TIMEZONE = Env::get('TIMEZONE', 'GMT');
$ENABLE_DEBUG = Env::get('ENABLE_DEBUG', false);
Expand Down Expand Up @@ -141,7 +140,7 @@
* You can also put a hash here; run "bin/pwgen.php" to generate one.
*/
'auth.adminpassword' => $ADMIN_PASS,
'admin.protectindexpage' => $ADMIN_PROTECT_INDEX_PAGE,
'admin.protectindexpage' => true,
'admin.protectmetadata' => true,

/*
Expand Down
13 changes: 5 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ services:
ssp:
build: .
volumes:
# Utilize custom certs
# Utilize custom certs
- ./development/ssp/cert:/data/vendor/simplesamlphp/simplesamlphp/cert

# Utilize custom configs
- ./development/ssp/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php

# Configure the debugger
- ./development/ssp/run-debug.sh:/data/run-debug.sh
command: ["/data/run-debug.sh"]
Expand Down Expand Up @@ -98,7 +98,6 @@ services:
SECRET_SALT: "h57fjemb&dn^nsJFGNjweJ"
IDP_NAME: "Hub"
SECURE_COOKIE: "false"
ADMIN_PROTECT_INDEX_PAGE: "false"
SHOW_SAML_ERRORS: "true"
THEME_USE: "material:material"
THEME_COLOR_SCHEME: "orange-light_blue"
Expand All @@ -110,7 +109,7 @@ services:
- db
volumes:
# Utilize custom certs
- ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
- ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert

# Utilize custom configs
- ./development/idp-local/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
Expand Down Expand Up @@ -146,7 +145,7 @@ services:
build: .
volumes:
# Utilize custom certs
- ./development/idp2-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
- ./development/idp2-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert

# Utilize custom configs
- ./development/idp2-local/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
Expand Down Expand Up @@ -190,7 +189,6 @@ services:
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
SAML20_IDP_ENABLE: "false"
ADMIN_PROTECT_INDEX_PAGE: "false"

sp2:
build: .
Expand All @@ -213,8 +211,7 @@ services:
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
SAML20_IDP_ENABLE: "false"
ADMIN_PROTECT_INDEX_PAGE: "false"


networks:
default:
driver: bridge
Expand Down
3 changes: 1 addition & 2 deletions dockerbuild/ssp-overrides/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
// Defaults provided if not defined in environment
$BASE_URL_PATH = Env::get('BASE_URL_PATH', '/');
$ADMIN_NAME = Env::get('ADMIN_NAME', 'SAML Admin');
$ADMIN_PROTECT_INDEX_PAGE = Env::get('ADMIN_PROTECT_INDEX_PAGE', true);
$SHOW_SAML_ERRORS = Env::get('SHOW_SAML_ERRORS', false);
$TIMEZONE = Env::get('TIMEZONE', 'GMT');
$ENABLE_DEBUG = Env::get('ENABLE_DEBUG', false);
Expand Down Expand Up @@ -242,7 +241,7 @@
* Set this options to true if you want to require administrator password to access the web interface
* or the metadata pages, respectively.
*/
'admin.protectindexpage' => $ADMIN_PROTECT_INDEX_PAGE,
'admin.protectindexpage' => true,
'admin.protectmetadata' => true,

/*
Expand Down
8 changes: 4 additions & 4 deletions features/material.feature
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Feature: Material theme

Scenario: Hub (disco) page
When I go to the Hub's discovery page
Then I should see our material theme

Scenario: Error page
When I go to the Hub but specify an invalid authentication source
Then I should see an "Error" page
And I should see our material theme

Scenario: Logout page
When I go to the Hub's home page
And I log in as a hub administrator
And I click on "Authentication"
And I click on "Test configured authentication sources"
And I click on "admin"
And I log in as a hub administrator
And I click on "Logout"
Then I should see a "Logged out" page
And I should see our material theme
Expand All @@ -26,5 +26,5 @@ Feature: Material theme
And I should see our material theme

Scenario: Forgot password link

Scenario: Help and profile links
1 change: 0 additions & 1 deletion local.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ SECRET_SALT=

# These are Optional
ADMIN_NAME=
ADMIN_PROTECT_INDEX_PAGE=
ANALYTICS_ID=
BASE_URL_PATH=
COMPOSER_ALLOW_SUPERUSER=1
Expand Down

0 comments on commit 4eb6baf

Please sign in to comment.