Skip to content

Commit aad0938

Browse files
authored
Merge pull request #10 from topcoder-platform/feature/auth0-proxy-server
m2m token from auth0 proxy server.
2 parents 6b4f059 + 33830dc commit aad0938

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ workflows:
6767
- "build-dev":
6868
filters:
6969
branches:
70-
only: [ "develop", "dev-circleci2" ]
70+
only: [ "develop", "dev-circleci2", "feature/auth0-proxy-server" ]
7171
- "build-prod":
7272
filters:
7373
branches:

config/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ module.exports = {
2222
AUTH0_AUDIENCE: process.env.AUTH0_AUDIENCE || 'https://www.topcoder.com',
2323
TOKEN_CACHE_TIME: process.env.TOKEN_CACHE_TIME,
2424
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
25-
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET
25+
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
26+
AUTH0_PROXY_SERVER_URL: process.env.AUTH0_PROXY_SERVER_URL
2627
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"joi": "^9.0.4",
2323
"lodash": "^4.17.10",
2424
"no-kafka": "^3.2.4",
25-
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#feature/m2mtoken",
25+
"tc-core-library-js": "appirio-tech/tc-core-library-js.git#v2.6",
2626
"topcoder-healthcheck-dropin": "^1.0.3",
2727
"winston": "^2.2.0"
2828
},

src/common/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const _ = require('lodash')
66
const config = require('config')
77
const m2mAuth = require('tc-core-library-js').auth.m2m
8-
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME']))
8+
const m2m = m2mAuth(_.pick(config, ['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME', 'AUTH0_PROXY_SERVER_URL']))
99

1010
/* Function to get M2M token
1111
* @returns m2m token

0 commit comments

Comments
 (0)