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

Commit 76c593b

Browse files
author
Sachin Maheshwari
committed
adding auth0 proxy server changes
1 parent f3f0117 commit 76c593b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ module.exports = {
2929
TOKEN_CACHE_TIME: process.env.TOKEN_CACHE_TIME,
3030
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
3131
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
32+
AUTH0_PROXY_SERVER_URL: process.env.AUTH0_PROXY_SERVER_URL,
3233
MONGODB_URL: process.env.MONGODB_URL || 'mongodb://localhost:27017/leaderboardDB'
3334
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"mongoose": "^5.3.3",
3030
"no-kafka": "^3.2.4",
3131
"superagent": "^3.8.3",
32-
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#feature/m2mtoken",
32+
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#v2.6",
3333
"topcoder-healthcheck-dropin": "^1.0.3",
3434
"winston": "^3.1.0"
3535
},

src/common/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const _ = require('lodash')
77
const request = require('superagent')
88
const m2mAuth = require('tc-core-library-js').auth.m2m
99

10-
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME']))
10+
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME', 'AUTH0_PROXY_SERVER_URL']))
1111

1212
/*
1313
* Check if the Group ID is configured to be processed

0 commit comments

Comments
 (0)