File tree Expand file tree Collapse file tree 5 files changed +14
-13
lines changed Expand file tree Collapse file tree 5 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ workflows:
82
82
- " build-dev " :
83
83
filters :
84
84
branches :
85
- only : [dev, 'feature/notification-email-improvements ']
85
+ only : [dev, 'feature/m2mtoken ']
86
86
- " build-prod " :
87
87
filters :
88
88
branches :
Original file line number Diff line number Diff line change @@ -44,4 +44,14 @@ module.exports = {
44
44
ENABLE_DEV_MODE : process . env . ENABLE_DEV_MODE || true ,
45
45
DEV_MODE_EMAIL : process . env . DEV_MODE_EMAIL ,
46
46
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 ,
47
57
} ;
Original file line number Diff line number Diff line change @@ -20,13 +20,4 @@ module.exports = {
20
20
// id of the BOT user which creates post with various events in discussions
21
21
TCWEBSERVICE_ID : process . env . TCWEBSERVICE_ID || '22838965' ,
22
22
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 ,
32
23
} ;
Original file line number Diff line number Diff line change 2
2
* Service to get data from TopCoder API
3
3
*/
4
4
const request = require ( 'superagent' ) ;
5
- const config = require ( './config' ) ;
5
+ const config = require ( '.. /config' ) ;
6
6
const _ = require ( 'lodash' ) ;
7
7
const tcCoreLibAuth = require ( 'tc-core-library-js' ) . auth ;
8
8
const m2m = tcCoreLibAuth . m2m ( config ) ;
Original file line number Diff line number Diff line change @@ -279,5 +279,5 @@ check_service_status() {
279
279
280
280
configure_aws_cli
281
281
push_ecr_image
282
- deploy_cluster
283
- check_service_status
282
+ # deploy_cluster
283
+ # check_service_status
You can’t perform that action at this time.
0 commit comments