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

Commit 77fcfb5

Browse files
authored
Merge pull request #344 from skyhit/remove_useless_direct_api_token
remove useless direct api token
2 parents 9ca3c20 + 09eec3a commit 77fcfb5

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

conf/ApplicationServer.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,3 @@ SSO_DOMAIN = @ApplicationServer.SSO_DOMAIN@
4646

4747
JWT_COOKIE_KEY = @ApplicationServer.JWT_COOKIE_KEY@
4848
JWT_V3_COOKIE_KEY = @ApplicationServer.JWT_V3_COOKIE_KEY@
49-
50-
DIRECT_API_SERVICE_ENDPOINT = @ApplicationServer.DIRECT_API_SERVICE_ENDPOINT@

src/java/main/com/topcoder/direct/services/configs/ServerConfiguration.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* Version 1.1 (TopCoder Direct - My Created Challenges)
1515
* <ul>
1616
* <li>Added {@link #JWT_COOOKIE_KEY}</li>
17-
* <li>Added {@link #DIRECT_API_SERVICE_ENDPOINT}</li>
1817
* </ul>
1918
* </p>
2019
*
@@ -24,8 +23,8 @@
2423
* </p>
2524
*
2625
*
27-
* @author GreatKevin, TCCoder
28-
* @version 1.2
26+
* @author GreatKevin, TCCoder
27+
* @version 1.2
2928
* @since 1.0 (Tokenize the server part of URLs used in TopCoder Direct)
3029
*/
3130
public class ServerConfiguration extends ApplicationServer {
@@ -58,12 +57,5 @@ public class ServerConfiguration extends ApplicationServer {
5857
*/
5958
public static String JWT_COOOKIE_KEY = bundle.getProperty("JWT_COOKIE_KEY", "tcjwt");
6059

61-
/**
62-
* The end point URL of the direct API. The default value is set to empty
63-
*
64-
* @since 1.1
65-
*/
66-
public static String DIRECT_API_SERVICE_ENDPOINT = bundle.getProperty("DIRECT_API_SERVICE_ENDPOINT", "");
67-
6860
public static String JWT_V3_COOKIE_KEY = bundle.getProperty("JWT_V3_COOKIE_KEY", "v3jwt");
6961
}

token.properties.docker

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@
337337
#####################################
338338
@ApplicationServer.JWT_COOKIE_KEY@=tcjwt_vm
339339
@ApplicationServer.JWT_V3_COOKIE_KEY@=v3jwt
340-
@ApplicationServer.DIRECT_API_SERVICE_ENDPOINT@= direct.dev.topcoder.com/direct/api/v2/
341340

342341
@memberSearchApiUrl@=https://tc-api.cloud.topcoder.com:8443/v3/members/_suggest/
343342
@groupMemberSearchApiUrl@=https://cockpit.cloud.topcoder.com/direct/group/member?handle=

token.properties.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@
304304
@ApplicationServer.JWT_COOKIE_KEY@=tcjwt
305305
@ApplicationServer.JWT_V3_COOKIE_KEY@=v3jwt
306306

307-
@ApplicationServer.DIRECT_API_SERVICE_ENDPOINT@= direct.dev.topcoder.com/direct/api/v2/
308-
309307

310308
#######################################
311309
# securityGroupApplicationContext.xml #

0 commit comments

Comments
 (0)