1. Atlassian
  2. Atlassian Connect
  3. atlassian-connect-express

Commits

Patrick Streule  committed b760744

ACDEV-1140: fix missing key

  • Participants
  • Parent commits b67188a
  • Branches master

Comments (0)

Files changed (1)

File lib/middleware/request.js

View file
  • Ignore whitespace
             var unverifiedClientKey = authentication.extractUnverifiedClientKeyFromRequest(req, addon);
 
             req.context = _.extend({
-                http: hostRequest(addon, params.userId, unverifiedClientKey)
+                http: hostRequest(addon, params.userId, unverifiedClientKey || params.clientKey)
             }, res.locals);
         }