-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More DotNet proxy help #549
Comments
Bump... is this the appropriate forum for me to bring this specific sort of issue to? |
Seems like for the proxy rule it should just use the host and the portal instance. If the proxy is hosted on the same domain as the application you can just use a path to the proxy. urlUtils.addProxyRule({
urlPrefix: "mapportaltst.matsugov.us/arcgis",
proxyUrl: "/prttst/DotNet/proxy.ashx"
}); |
Definately seems like a proxy configuration thing. Can you try asking in the resource-proxy repo or on GeoNet? |
Thanks to all of your hard work above I was able to get the proxy to authenticate and load my geoform. Here's what my Proxy Rules look like in the index.hml: urlUtils.addProxyRule({ urlUtils.addProxyRule({ Here's my proxy.config: serverUrl url="https://myorg.maps.arcgis.com/sharing/rest" serverUrl url="https://services.arcgis.com" |
With the help provided in issue 538, I've been able to make quite a bit of progress in getting my GeoForm up and running through a proxy. At this point it appears that while I am able to get the GeoForm app to authenticate, the webmap it uses remains unavailable.
In geoform/config/defaults.js:
I haven't seen much about the
oauthappid
key... should I be using that at all? I am not currently, though I have tried without success. When I give the key a value, instead of the username/password login in for the webmap, I get this sign in dialog:It opens a Request for Permission page with a url like https://mapportaltst.matsugov.us/arcgis/sharing/oauth2/approve?oauth_state=3iaIUXJ.... When I click the approve button on that page, I get a 404 error.
In dotnet/proxy.config
In geoform/index.html:
In the proxy log:
And just to be extra verbose, here are some screen shots that I think are pertinent from the Network page of the Developer tools when loading the GeoForm (which stops at the username/password dialog):
The text was updated successfully, but these errors were encountered: