@@ -61,11 +61,11 @@ module.exports = {
6161 } ,
6262 TOPCODER_VALUES : {
6363 dev : {
64- TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts.topcoder-dev.com/member ' ,
64+ TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts-auth0 .topcoder-dev.com' ,
6565 TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || 'https://api.topcoder-dev.com/v2/user/profile' ,
6666 } ,
6767 prod : {
68- TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts.topcoder.com/member ' ,
68+ TC_LOGIN_URL : process . env . TC_LOGIN_URL || 'https://accounts-auth0 .topcoder.com' ,
6969 TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || 'https://api.topcoder.com/v2/user/profile' ,
7070 } ,
7171 } ,
@@ -76,11 +76,11 @@ const frontendConfigs = {
7676 "JWT_V3_NAME" :"v3jwt" ,
7777 "JWT_V2_NAME" :"tcjwt" ,
7878 "COOKIES_SECURE" :false ,
79- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member " ,
79+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
8080 "TC_USER_PROFILE_URL" : "http://api.topcoder-dev.com/v2/user/profile" ,
8181 "API_URL" : "https://127.0.0.1:8443" ,
8282 "ADMIN_TOOL_URL" : "http://localhost:8080/api/v2" ,
83- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-dev.com/connector.html " ,
83+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
8484 "DIRECT_URL_BASE" : "https://www.topcoder-dev/direct/projectOverview?formData.projectId=" ,
8585 "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
8686 "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -92,11 +92,11 @@ const frontendConfigs = {
9292 "JWT_V3_NAME" :"v3jwt" ,
9393 "JWT_V2_NAME" :"tcjwt" ,
9494 "COOKIES_SECURE" :false ,
95- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member " ,
95+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
9696 "TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
9797 "API_URL" : "https://api.topcoder-dev.com" ,
9898 "ADMIN_TOOL_URL" : "https://api.topcoder-dev.com/v2" ,
99- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-dev.com/connector.html " ,
99+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
100100 "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
101101 "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
102102 "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -108,11 +108,14 @@ const frontendConfigs = {
108108 "JWT_V3_NAME" :"v3jwt" ,
109109 "JWT_V2_NAME" :"tcjwt" ,
110110 "COOKIES_SECURE" :false ,
111- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member" ,
111+ "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com" ,
112+
113+ // TODO: we can clean this conf, as no need https://github.com/topcoder-platform/topcoder-x-ui/issues/342
112114 "TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
115+
113116 "API_URL" : "https://api.topcoder-dev.com" ,
114117 "ADMIN_TOOL_URL" : "https://api.topcoder-dev.com/v2" ,
115- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-dev.com/connector.html " ,
118+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
116119 "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
117120 "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
118121 "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -124,11 +127,11 @@ const frontendConfigs = {
124127 "JWT_V3_NAME" :"v3jwt" ,
125128 "JWT_V2_NAME" :"tcjwt" ,
126129 "COOKIES_SECURE" :false ,
127- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member " ,
130+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
128131 "TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
129132 "API_URL" : "https://api.topcoder-qa.com" ,
130133 "ADMIN_TOOL_URL" : "https://api.topcoder-qa.com/v2" ,
131- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-qa .com/connector.html " ,
134+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0 .topcoder-dev .com" ,
132135 "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
133136 "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
134137 "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -140,11 +143,11 @@ const frontendConfigs = {
140143 "JWT_V3_NAME" :"v3jwt" ,
141144 "JWT_V2_NAME" :"tcjwt" ,
142145 "COOKIES_SECURE" :false ,
143- "TC_LOGIN_URL" : "https://accounts.topcoder.com/member " ,
146+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder.com" ,
144147 "TC_USER_PROFILE_URL" : "https://api.topcoder.com/v2/user/profile" ,
145148 "API_URL" : "https://api.topcoder.com" ,
146149 "ADMIN_TOOL_URL" : "https://api.topcoder.com/v2" ,
147- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder.com/connector.html " ,
150+ "ACCOUNTS_CONNECTOR_URL" : "https://accounts-auth0 .topcoder.com" ,
148151 "DIRECT_URL_BASE" : "https://www.topcoder.com/direct/projectOverview?formData.projectId=" ,
149152 "OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
150153 "OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -173,4 +176,4 @@ module.exports.frontendConfigs = {
173176 TOPCODER_URL : process . env . TOPCODER_URL || frontendConfigs [ activeEnv ] . TOPCODER_URL ,
174177 GITHUB_TEAM_URL : process . env . GITHUB_TEAM_URL || frontendConfigs [ activeEnv ] . GITHUB_TEAM_URL ,
175178 GITLAB_GROUP_URL : process . env . GITLAB_GROUP_URL || frontendConfigs [ activeEnv ] . GITLAB_GROUP_URL
176- } ;
179+ } ;
0 commit comments