Commit b33a16a6 authored by John Oppler's avatar John Oppler

Fix ADFS docs to account for DR instances

parent eafe71b1
......@@ -24,7 +24,7 @@ The following additional constants and globals are also configured.
|Constant/Global|Description|Guaranteed value|
|-|-|-|
|CWP_ENVIRONMENT|CWP Environment|"prod", "uat", or "test"|
|CWP_ENVIRONMENT|CWP Environment|"prod", "uat", "dr", "uatdr" or "test"|
|CWP_INSTANCE_DR_TYPE|DR type this instance is configured for|"backup", "passive", or "active"|
|CWP_URANDOM_TOKEN_1|Random 24-character alphanumeric (A-Z, a-z, 0-9) token, free for your custom use|-|
|CWP_URANDOM_TOKEN_2|As above, 2nd token|-|
......
......@@ -102,14 +102,14 @@ with the following in `mysite/_config.php`
**Replace 'instancename' with the actual instance name so that the URL is correct.**
// Configure SAML certificates for the CWP UAT environment
if(defined('CWP_ENVIRONMENT') && CWP_ENVIRONMENT == 'uat') {
if(defined('CWP_ENVIRONMENT') && (CWP_ENVIRONMENT == 'uat' || CWP_ENVIRONMENT == 'uatdr')) {
Config::inst()->update('SAMLConfiguration', 'SP', array(
'entityId' => 'https://instancename-uat.cwp.govt.nz/',
'privateKey' => '../../certs/saml.pem',
'x509cert' => '../../certs/saml.crt'
));
// Configure SAML certificates for the CWP Production environment
} elseif(defined('CWP_ENVIRONMENT') && CWP_ENVIRONMENT == 'prod') {
} elseif(defined('CWP_ENVIRONMENT') && (CWP_ENVIRONMENT == 'prod' || CWP_ENVIRONMENT == 'dr')) {
Config::inst()->update('SAMLConfiguration', 'SP', array(
'entityId' => 'https://instancename.cwp.govt.nz/',
'privateKey' => '../../certs/saml.pem',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment