The inbuilt plugin for EMG OAuth validates both the APIProxies and Resource URIs in the Product against the JWT token payload product details. Why both needs to be validated (Proxy and Resource URIs)?
If I want to do only resource URI verification, not the API Proxy , is there any way I can do that?
const checkIfAuthorized = module.exports.checkIfAuthorized = function checkIfAuthorized(config, urlPath, proxy, decodedToken)
{ if (!decodedToken.api_product_list) { return false; } return decodedToken.api_product_list.some(function (product) { const validProxyNames = config.product_to_proxy[product]; if (!validProxyNames) { return false; } const apiproxies = config.product_to_api_resource[product]; var matchesProxyRules = false; if(apiproxies && apiproxies.length){