Esri / geoform-template-js

GeoForm is a configurable template for form based data editing of a Feature Service.
http://esri.github.io/geoform-template-js/
Apache License 2.0
67 stars 83 forks source link

DotNet Proxy isn't working #538

Closed randomblink closed 6 years ago

randomblink commented 7 years ago

I've configured the GeoForm per ALL instructions. But the proxy isn't working. The geoform is on an INTERNAL ONLY server. The AGOL Feature Layer and WebMap and Application are all shared with the Organization. I've got ClientID and ClientSecret setup in the proxy.

Nothing... it asks for sign on everytime.

randomblink commented 7 years ago

IT WORKS!!!!

driskull commented 7 years ago

200w_d

randomblink commented 7 years ago

index.html image

proxy.config image

On a whim I copied the proxy rules for the APP ID and swapped out the WEBMAP ID and it works...

driskull commented 7 years ago

cool! you might just be able to use up to the content/items to eliminate both entries.

driskull commented 7 years ago

540

randomblink commented 7 years ago

That is correct. I used the following...

proxy.config serverUrl url="https://cityoftulsa.maps.arcgis.com/sharing/rest/content/items/" clientId="INSERT" clientSecret="INSERT" oauth2Endpoint="https://cityoftulsa.maps.arcgis.com/sharing/oauth2/" matchAll="true"

index.html urlUtils.addProxyRule({ urlPrefix: "cityoftulsa.maps.arcgis.com/sharing/rest/content/items/", proxyUrl: "http://cotgis/DotNet/proxy.ashx" });

But I included both the WEBMAP ID and the APP ID in the default.js.

pdenny commented 6 years ago

This issue thread has been hugely helpful for me, but I have not quite gotten it working. I've created a new issue here. Perhaps someone has some insight?