We are trying to validate authorization via a query string OR the header for edgemicro.
I have changed the OoB oauth plugin as below:
if ((apiKey = reqUrl.query['cid']) || (apiKey = req.headers[apiKeyHeaderName])) {
exchangeApiKeyForToken(req, res, next, config, logger, stats, middleware, apiKey);
By changing like above, i could get success for 1 API tried till now but majority shows 403 Forbidden.
Could anyone please help me understand on what could cause this.
current nodejs version is v7.6.0
current edgemicro version is 2.3.5
Thanks.