Skip to content

Commit 9a76f85

Browse files
author
Sachin Maheshwari
committed
replacing m2m config value and deployment testing.
1 parent fbbc9cf commit 9a76f85

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ workflows:
8282
- "build-dev":
8383
filters:
8484
branches:
85-
only: [dev, 'feature/notification-email-improvements']
85+
only: [dev, 'feature/m2mtoken']
8686
- "build-prod":
8787
filters:
8888
branches:

config/default.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,14 @@ module.exports = {
4444
ENABLE_DEV_MODE: process.env.ENABLE_DEV_MODE || true,
4545
DEV_MODE_EMAIL: process.env.DEV_MODE_EMAIL,
4646
API_CONTEXT_PATH: process.env.API_CONTEXT_PATH || '/v5/notifications',
47+
48+
// Configuration for generating machine to machine auth0 token.
49+
// The token will be used for calling another internal API.
50+
auth0Url: process.env.auth0Url,
51+
auth0Audience: process.env.auth0Audience,
52+
// The token will be cached.
53+
// We define the time period of the cached token.
54+
tokenCacheTime: process.env.tokenCacheTime || 86400000,
55+
auth0CliendId: process.env.auth0CliendId,
56+
auth0CliendSecret: process.env.auth0CliendSecret,
4757
};

connect/config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,4 @@ module.exports = {
2020
// id of the BOT user which creates post with various events in discussions
2121
TCWEBSERVICE_ID: process.env.TCWEBSERVICE_ID || '22838965',
2222

23-
// Configuration for generating machine to machine auth0 token.
24-
// The token will be used for calling another internal API.
25-
auth0Url: process.env.auth0Url || 'https://topcoder-newauth.auth0.com/oauth/token',
26-
auth0Audience: process.env.auth0Audience || 'https://www.topcoder.com',
27-
// The token will be cached.
28-
// We define the time period of the cached token.
29-
tokenCacheTime: process.env.tokenCacheTime || 86400000,
30-
auth0CliendId: process.env.auth0CliendId,
31-
auth0CliendSecret: process.env.auth0CliendSecret,
3223
};

connect/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Service to get data from TopCoder API
33
*/
44
const request = require('superagent');
5-
const config = require('./config');
5+
const config = require('../config');
66
const _ = require('lodash');
77
const tcCoreLibAuth = require('tc-core-library-js').auth;
88
const m2m = tcCoreLibAuth.m2m(config);

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,5 +279,5 @@ check_service_status() {
279279

280280
configure_aws_cli
281281
push_ecr_image
282-
deploy_cluster
283-
check_service_status
282+
#deploy_cluster
283+
#check_service_status

0 commit comments

Comments
 (0)