Skip to content

Commit

Permalink
Merge branch 'hotfix/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrafael committed Jun 25, 2020
2 parents 7236e78 + abf87b3 commit d2b3e1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "express-apigw-base-plugin",
"version": "1.3.1",
"version": "1.3.2",
"description": "Express Gateway Base Plugin",
"main": "manifest.js",
"author": "NUTES/UEPB",
"license": "Apache-2.0",
"scripts": {
"test": "mocha --config test/.mocharc.yml test/unit/**/**-spec.js"
"test": "mocha test/unit/**/**-spec.js"
},
"dependencies": {
"axios": "^0.19.2",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"helmet": "^3.22.0",
"helmet": "^3.23.2",
"jsonwebtoken": "^8.5.1",
"passport": "^0.4.1",
"passport-jwt": "^4.0.0"
},
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^7.1.1",
"mocha": "^8.0.1",
"sinon": "^9.0.2",
"supertest": "^4.0.2",
"express-gateway": "^1.16.10"
Expand Down
4 changes: 3 additions & 1 deletion policies/auth/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = function (actionParams, authServiceTest, localServicesTest) {

try {
// 1. Run authentication on the account-service
const authResponse = await userService.post(actionParams.urlAuthService, req.body)
const authResponse = await userService.post(
actionParams.urlAuthService, req.body, {headers: req.headers}
)
const accessToken = authResponse.data.access_token

// 2. Read JWT public key
Expand Down

0 comments on commit d2b3e1d

Please sign in to comment.