Skip to content

Commit 6ec239f

Browse files
committed
Remove vanilla access token value
1 parent b525f14 commit 6ec239f

File tree

7 files changed

+11
-18
lines changed

7 files changed

+11
-18
lines changed

.environments/.env.dev

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
66
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
88

9-
# Vanilla Forums
10-
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
11-
129
# DataDogLogging
1310
REACT_APP_DATADOG_PUBLIC_TOKEN=puba0825671e469d16f940c5a30dc738f11
1411

.environments/.env.prod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
66
REACT_APP_STRIPE_API_KEY=pk_live_m3bCBVSfkfMOEp3unZFRsHXi
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
88

9-
# Vanilla Forums
10-
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
11-
129
# DataDogLogging
1310
REACT_APP_DATADOG_PUBLIC_TOKEN=puba0825671e469d16f940c5a30dc738f11
1411

.environments/.env.qa

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ REACT_APP_ENABLE_TCA_CERT_MONETIZATION=false
66
REACT_APP_STRIPE_API_KEY=pk_test_rfcS49MHRVUKomQ9JgSH7Xqz
77
REACT_APP_STRIPE_API_VERSION=2020-08-27
88

9-
# Vanilla Forums
10-
REACT_APP_VANILLA_ACCESS_TOKEN=va.JApNvUOx3549h20I6tnl1kOQDc75NDIp.0jG3dA.EE3gZgV
11-
129
# DataDogLogging
1310
REACT_APP_DATADOG_PUBLIC_TOKEN=puba0825671e469d16f940c5a30dc738f11
1411

src/apps/self-service/src/config/constants/work.constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const VANILLA_EMBED_JS = EnvironmentConfig.ENV === 'prod'
4242
: 'https://vanilla.topcoder-dev.com/js/embed.js';
4343
export const VANILLA_EMBED_TYPE = 'mfe';
4444
export const VANILLA_FORUM_API = EnvironmentConfig.VANILLA_FORUM.V2_URL;
45-
export const VANILLA_ACCESS_TOKEN = EnvironmentConfig.VANILLA_FORUM.ACCESS_TOKEN;
4645

4746
/**
4847
* Expire time period of auto saved intake form: 24 hours

src/apps/self-service/src/lib/work-provider/message-functions/message-store/message.store.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@ import { GetUnreadMessageCountResponse } from './get-unread-message-count-respon
55

66
export async function getUnreadCountAsync(workId: string, handle: string): Promise<GetUnreadMessageCountResponse> {
77

8-
const url: string = [
9-
`${EnvironmentConfig.VANILLA_FORUM.V2_URL}/groups/${workId}/member/${handle}`,
10-
`access_token=${EnvironmentConfig.VANILLA_FORUM.ACCESS_TOKEN}`,
11-
].join('?')
8+
// Removing this because it's no longer needed and showed up in a pen test failure (PM-324)
9+
// const url: string = [
10+
// `${EnvironmentConfig.VANILLA_FORUM.V2_URL}/groups/${workId}/member/${handle}`,
11+
// `access_token=${EnvironmentConfig.VANILLA_FORUM.ACCESS_TOKEN}`,
12+
// ].join('?')
1213

13-
const response: { unreadNotifications: number } = await xhrGetAsync(url)
14+
// const response: { unreadNotifications: number } = await xhrGetAsync(url)
1415

16+
// return {
17+
// messageCount: response.unreadNotifications,
18+
// workId,
19+
// }
1520
return {
16-
messageCount: response.unreadNotifications,
21+
messageCount: 0,
1722
workId,
1823
}
1924
}

src/config/environments/default.env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export const REAUTH_OFFSET = 55
3939
export const SPRIG = { ENVIRONMENT_ID: getReactEnv<string | undefined>('SPRIG_ENV_ID', undefined) }
4040

4141
export const VANILLA_FORUM = {
42-
ACCESS_TOKEN: getReactEnv<string>('VANILLA_ACCESS_TOKEN', ''),
4342
V2_URL: 'https://vanilla.topcoder-dev.com/api/v2',
4443
}
4544

src/config/environments/prod.env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ export * from './default.env'
66
export const TERMS_URL = 'https://www.topcoder.com/challenges/terms/detail/564a981e-6840-4a5c-894e-d5ad22e9cd6f'
77

88
export const VANILLA_FORUM = {
9-
ACCESS_TOKEN: getReactEnv<string>('VANILLA_ACCESS_TOKEN', ''),
109
V2_URL: 'https://vanilla.topcoder.com/api/v2',
1110
}

0 commit comments

Comments
 (0)