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

Commit 63ee5b8

Browse files
author
Sachin Maheshwari
committed
m2m calling cleanup
1 parent 1c1282f commit 63ee5b8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ The following parameters can be set in config files or in env variables:
1616
- AUTH0_TOPCODER_AUDIENCE: The auth0 audience for accessing tc api(s), default value: 'https://m2m.topcoder-dev.com/'
1717
- AUTH0_CLIENT_ID: The auth0 client id
1818
- AUTH0_CLIENT_SECRET: The auth0 client secret
19-
- VALID_ISSUERS: The valid issuer of tokens, a json array contains valid issuer.
20-
- TOKEN_CACHE_TIME: Auth0 token cache time, used to get TC M2M token
2119
- AUTH0_PROXY_SERVER_URL: Proxy Auth0 URL, used to get TC M2M token
2220
- SKILL_PROVIDER_NAME: The skill provider name, default value: Topcoder
2321
- SLEEP_TIME: The pause time between two create operations, default value: 1000 ms

src/common/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const m2mAuth = require('tc-core-library-js').auth.m2m
1010

1111
const m2mForTopcoder = m2mAuth({
1212
AUTH0_AUDIENCE: config.AUTH0_TOPCODER_AUDIENCE,
13-
..._.pick(config, ['AUTH0_URL', 'AUTH0_CLIENT_ID', 'AUTH0_CLIENT_SECRET', 'AUTH0_PROXY_SERVER_URL'])
13+
..._.pick(config, ['AUTH0_URL', 'AUTH0_PROXY_SERVER_URL'])
1414
})
1515

1616
const m2mForUbahn = m2mAuth({
1717
AUTH0_AUDIENCE: config.AUTH0_UBAHN_AUDIENCE,
18-
..._.pick(config, ['AUTH0_URL', 'AUTH0_CLIENT_ID', 'AUTH0_CLIENT_SECRET', 'AUTH0_PROXY_SERVER_URL'])
18+
..._.pick(config, ['AUTH0_URL', 'AUTH0_PROXY_SERVER_URL'])
1919
})
2020

2121
/**

0 commit comments

Comments
 (0)