Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 94210e5

Browse files
author
Sachin Maheshwari
committed
changing conf values for new auth flow
1 parent b7db17d commit 94210e5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/config.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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-auth.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,14 +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",
112112

113113
// TODO: we can clean this conf, as no need https://github.com/topcoder-platform/topcoder-x-ui/issues/342
114114
"TC_USER_PROFILE_URL": "https://api.topcoder-dev.com/v2/user/profile",
115115

116116
"API_URL": "https://api.topcoder-dev.com",
117117
"ADMIN_TOOL_URL": "https://api.topcoder-dev.com/v2",
118-
"ACCOUNTS_CONNECTOR_URL": "https://accounts.topcoder-dev.com/connector.html",
118+
"ACCOUNTS_CONNECTOR_URL": "https://accounts-auth0.topcoder-dev.com",
119119
"DIRECT_URL_BASE": "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=",
120120
"OWNER_LOGIN_GITHUB_URL":"/api/v1/github/owneruser/login",
121121
"OWNER_LOGIN_GITLAB_URL":"/api/v1/gitlab/owneruser/login",
@@ -127,11 +127,11 @@ const frontendConfigs = {
127127
"JWT_V3_NAME":"v3jwt",
128128
"JWT_V2_NAME":"tcjwt",
129129
"COOKIES_SECURE":false,
130-
"TC_LOGIN_URL": "https://accounts.topcoder-dev.com/member",
130+
"TC_LOGIN_URL": "https://accounts-auth0.topcoder-dev.com",
131131
"TC_USER_PROFILE_URL": "https://api.topcoder-dev.com/v2/user/profile",
132132
"API_URL": "https://api.topcoder-qa.com",
133133
"ADMIN_TOOL_URL": "https://api.topcoder-qa.com/v2",
134-
"ACCOUNTS_CONNECTOR_URL": "https://accounts.topcoder-qa.com/connector.html",
134+
"ACCOUNTS_CONNECTOR_URL": "https://accounts-auth0.topcoder-dev.com",
135135
"DIRECT_URL_BASE": "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=",
136136
"OWNER_LOGIN_GITHUB_URL":"/api/v1/github/owneruser/login",
137137
"OWNER_LOGIN_GITLAB_URL":"/api/v1/gitlab/owneruser/login",
@@ -143,11 +143,11 @@ const frontendConfigs = {
143143
"JWT_V3_NAME":"v3jwt",
144144
"JWT_V2_NAME":"tcjwt",
145145
"COOKIES_SECURE":false,
146-
"TC_LOGIN_URL": "https://accounts.topcoder.com/member",
146+
"TC_LOGIN_URL": "https://accounts-auth0.topcoder.com",
147147
"TC_USER_PROFILE_URL": "https://api.topcoder.com/v2/user/profile",
148148
"API_URL": "https://api.topcoder.com",
149149
"ADMIN_TOOL_URL": "https://api.topcoder.com/v2",
150-
"ACCOUNTS_CONNECTOR_URL": "https://accounts.topcoder.com/connector.html",
150+
"ACCOUNTS_CONNECTOR_URL": "https://accounts-auth0.topcoder.com",
151151
"DIRECT_URL_BASE": "https://www.topcoder.com/direct/projectOverview?formData.projectId=",
152152
"OWNER_LOGIN_GITHUB_URL":"/api/v1/github/owneruser/login",
153153
"OWNER_LOGIN_GITLAB_URL":"/api/v1/gitlab/owneruser/login",

0 commit comments

Comments
 (0)