@@ -61,11 +61,11 @@ module.exports = {
61
61
} ,
62
62
TOPCODER_VALUES : {
63
63
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' ,
65
65
TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || 'https://api.topcoder-dev.com/v2/user/profile' ,
66
66
} ,
67
67
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' ,
69
69
TC_USER_PROFILE_URL : process . env . TC_USER_PROFILE_URL || 'https://api.topcoder.com/v2/user/profile' ,
70
70
} ,
71
71
} ,
@@ -76,11 +76,11 @@ const frontendConfigs = {
76
76
"JWT_V3_NAME" :"v3jwt" ,
77
77
"JWT_V2_NAME" :"tcjwt" ,
78
78
"COOKIES_SECURE" :false ,
79
- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member " ,
79
+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
80
80
"TC_USER_PROFILE_URL" : "http://api.topcoder-dev.com/v2/user/profile" ,
81
81
"API_URL" : "https://127.0.0.1:8443" ,
82
82
"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" ,
84
84
"DIRECT_URL_BASE" : "https://www.topcoder-dev/direct/projectOverview?formData.projectId=" ,
85
85
"OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
86
86
"OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -92,11 +92,11 @@ const frontendConfigs = {
92
92
"JWT_V3_NAME" :"v3jwt" ,
93
93
"JWT_V2_NAME" :"tcjwt" ,
94
94
"COOKIES_SECURE" :false ,
95
- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member " ,
95
+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
96
96
"TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
97
97
"API_URL" : "https://api.topcoder-dev.com" ,
98
98
"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" ,
100
100
"DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
101
101
"OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
102
102
"OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -108,11 +108,14 @@ const frontendConfigs = {
108
108
"JWT_V3_NAME" :"v3jwt" ,
109
109
"JWT_V2_NAME" :"tcjwt" ,
110
110
"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
112
114
"TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
115
+
113
116
"API_URL" : "https://api.topcoder-dev.com" ,
114
117
"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" ,
116
119
"DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
117
120
"OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
118
121
"OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -124,11 +127,11 @@ const frontendConfigs = {
124
127
"JWT_V3_NAME" :"v3jwt" ,
125
128
"JWT_V2_NAME" :"tcjwt" ,
126
129
"COOKIES_SECURE" :false ,
127
- "TC_LOGIN_URL" : "https://accounts.topcoder-dev.com/member " ,
130
+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder-dev.com" ,
128
131
"TC_USER_PROFILE_URL" : "https://api.topcoder-dev.com/v2/user/profile" ,
129
132
"API_URL" : "https://api.topcoder-qa.com" ,
130
133
"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" ,
132
135
"DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
133
136
"OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
134
137
"OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -140,11 +143,11 @@ const frontendConfigs = {
140
143
"JWT_V3_NAME" :"v3jwt" ,
141
144
"JWT_V2_NAME" :"tcjwt" ,
142
145
"COOKIES_SECURE" :false ,
143
- "TC_LOGIN_URL" : "https://accounts.topcoder.com/member " ,
146
+ "TC_LOGIN_URL" : "https://accounts-auth0 .topcoder.com" ,
144
147
"TC_USER_PROFILE_URL" : "https://api.topcoder.com/v2/user/profile" ,
145
148
"API_URL" : "https://api.topcoder.com" ,
146
149
"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" ,
148
151
"DIRECT_URL_BASE" : "https://www.topcoder.com/direct/projectOverview?formData.projectId=" ,
149
152
"OWNER_LOGIN_GITHUB_URL" :"/api/v1/github/owneruser/login" ,
150
153
"OWNER_LOGIN_GITLAB_URL" :"/api/v1/gitlab/owneruser/login" ,
@@ -173,4 +176,4 @@ module.exports.frontendConfigs = {
173
176
TOPCODER_URL : process . env . TOPCODER_URL || frontendConfigs [ activeEnv ] . TOPCODER_URL ,
174
177
GITHUB_TEAM_URL : process . env . GITHUB_TEAM_URL || frontendConfigs [ activeEnv ] . GITHUB_TEAM_URL ,
175
178
GITLAB_GROUP_URL : process . env . GITLAB_GROUP_URL || frontendConfigs [ activeEnv ] . GITLAB_GROUP_URL
176
- } ;
179
+ } ;
0 commit comments