Skip to content

Commit 7856dbd

Browse files
committed
Hotfix for vanilla env not working properly
1 parent 757b912 commit 7856dbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

config/vanilla/config.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Trusted Domains. Specify one domain per line; use * for wildcard matches
99
$Configuration['Garden']['TrustedDomains'] = '*.topcoder-dev.com
1010
*.topcoder.com';
11-
$Configuration['Theme']['UniversalNavUrl'] = getenv('VANILLA_ENV') === 'prod'? '//uni-nav.topcoder.com/v1/tc-universal-nav.js':'//uni-nav.topcoder-dev.com/v1/tc-universal-nav.js';
11+
$Configuration['Theme']['UniversalNavUrl'] = '//uni-nav.topcoder.com/v1/tc-universal-nav.js';
1212

1313
$Configuration['Database']['Name'] = getenv('MYSQL_DATABASE');
1414
$Configuration['Database']['Host'] = getenv('MYSQL_HOST');
@@ -118,10 +118,10 @@
118118
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderHS256']['Secret'] = getenv('TOPCODER_HS256_SECRET');
119119
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderRS256']['UsernameClaim'] = 'nickname';
120120
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderHS256']['UsernameClaim'] = 'handle';
121-
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderHS256']['UserIDClaim'] = getenv('VANILLA_ENV') == 'prod'? 'https://topcoder.com/userId' : 'https://topcoder-dev.com/userId';
122-
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderRS256']['UserIDClaim'] = getenv('VANILLA_ENV') == 'prod'? 'https://topcoder.com/userId' : 'https://topcoder-dev.com/userId';
123-
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderHS256']['PhotoUrlClaim'] = getenv('VANILLA_ENV') == 'prod'? 'picture' : 'picture';
124-
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderRS256']['PhotoUrlClaim'] = getenv('VANILLA_ENV') == 'prod'? 'picture' : 'picture';
121+
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderHS256']['UserIDClaim'] = 'https://topcoder.com/userId';
122+
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderRS256']['UserIDClaim'] = 'https://topcoder.com/userId';
123+
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderHS256']['PhotoUrlClaim'] = 'picture';
124+
$Configuration['Plugins']['Topcoder']['SSO']['TopcoderRS256']['PhotoUrlClaim'] = 'picture';
125125
$Configuration['Plugins']['Topcoder']['SSO']['RefreshTokenURL' ] = getenv('TOPCODER_PLUGIN_SSO_REFRESHTOKENURL');
126126

127127
// Filestack

0 commit comments

Comments
 (0)