Skip to content

Commit

Permalink
Updating eslint-config-aio-lib-config and peer deps (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: Amulya Kashyap <[email protected]>
  • Loading branch information
amulyakashyap09 and Amulya Kashyap authored Jan 13, 2025
1 parent ad4cda2 commit 2ea748a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}
},
"rules": {
"jsdoc/no-defaults": 0,
"jsdoc/tag-lines": [
// The Error level should be `error`, `warn`, or `off` (or 2, 1, or 0)
"error",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
},
"devDependencies": {
"@adobe/aio-lib-test-proxy": "^1.0.0",
"@adobe/eslint-config-aio-lib-config": "^2.0.1",
"@adobe/eslint-config-aio-lib-config": "^4.0.0",
"@types/jest": "^29.5.0",
"dotenv": "^16.3.1",
"eslint": "^8.46.0",
"eslint": "^8.57.1",
"eslint-config-oclif": "^4.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jsdoc": "^42.0.0",
"eslint-plugin-n": "^15.7",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsdoc": "^48.11.0",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-standard": "^5.0.0",
"jest": "^29",
"jest-junit": "^16.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/ims.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class Ims {
* @param {string} clientSecret The Client Secrete proving client ID ownership
* @param {string} scopes The list of scopes to request as a blank separated list
* @returns {Promise} a promise resolving to a tokens object as described in the
* {@link toTokenResult} or rejects to an error message.
* an object containing the access token and refresh token or rejects to an error message.
*/
async getAccessToken (authCode, clientId, clientSecret, scopes) {
aioLogger.debug('getAccessToken(%s, %s, %s, %o)', authCode, clientId, clientSecret, scopes)
Expand Down Expand Up @@ -486,6 +486,7 @@ class Ims {
if (allowList) {
aioLogger.debug('validateTokenAllowList (allowList): (%s)', allowList.join(', '))
if (allowList.indexOf(clientId) === -1) {
console.log(`${clientId} not in allow list: ${allowList.join(', ')}`)
validationResponse = {
status: 403,
imsValidation: {
Expand Down

0 comments on commit 2ea748a

Please sign in to comment.