I have a secure Vector Tile service that is shared for the organization. I am consuming it from WAB deployed in an Apache. It has already configured proxy, the requests are by proxy but they keep asking me for credentials.
Thanks.
Solved! Go to Solution.
Carlos,
Try adding that url to your proxy.config serverUrls then using the same username and password.
Carlos,
You need to specify a true url to your proxy in the url and proxyUrl properties in the man config.json. So if I have deployed my add to my web server and the urls is http://esri.com/mayapp/ then the proxy url should be just that http://esri.com/maapp/proxy.php if the proxy is in the same application folder. If it is just in the root of my web server then it would be http://esri.com/proxy.php
The other thing I notice is that in your proxy.config you have the url with the https protocol but in your WAB config.json you have http protocol that is an issue.
Hi Robert thanks, but I already made the change but still requesting credentials. Greetings from Colombia
Carlos,
So it may just be a copy and paste issue but you have
https://companyt.maps.arcgis.com/sharing/rest in your proxy config.
but have https:/company.arcgis.com/sharing/rest in your WAB Config.json They need to match exactly
Also I would not expect to see a proxyUrl address like you have.
What a shame Robert. These are the true data.
Carlos,
So now specify the url in your WAB config.json for your Proxy too.
"httpProxy": {
"useProxy": true,
"alwaysUseProxy": false,
"url": "http://127.0.0.1/geoportal/proxy.php",
"rules": [
{
"urlPrefix": "https://geoportal-igac.maps.arcgis.com/sharing/rest",
"proxyUrl": "http://127.0.0.1/geoportal/proxy.php"
}
]
},
Have you tested your proxy?
Hi Robert, the proxy works perfect. I see that the petition does it well and returns a perfect answer but still requests the credentials. I do not know if the
problems is because it is a vector tile or because it is a service shared by another user of the organization.
Have you tried the proxy url without using the IP LoopBack url? I use the machine name always never localhost or 127.0.0.1.
Hello, Robert. Thanks for your support. I use the proxy with the name of the team. As you can see, he makes the request and the service returns the data well. But it is asking for a second authentication to connect to https://tiles.arcgis.com/
Carlos,
Try adding that url to your proxy.config serverUrls then using the same username and password.