Added the case where an authentication is required to fallback to populating the JSON content from a local file.