I am using the .NET proxy for app login on a web application. The proxy.config works if I specify individual URLs. For example:
<serverUrl url="https://myserver/arcgis/rest/services/myname/MapServer"
clientId="aaa"
clientSecret="bbb"
oauth2Endpoint="https://myserver/portal/sharing/rest/oauth2"
matchAll="true"/>
I would like to use the proxy for multiple services on our server, but using something like this results in invalid tokens being generated:
<serverUrl url="https://myserver/arcgis/rest/services/"
clientId="aaa"
clientSecret="bbb"
oauth2Endpoint="https://myserver/portal/sharing/rest/oauth2"
matchAll="true"/>
Is it possible to specify this type of "partial" match on the URL using the proxy?
From the documentation:
Add a new <serverUrl> entry for each service that will use the proxy. The proxy.config allows you to use the serverUrl tag to specify one or more ArcGIS Server services that the proxy will forward requests to. The serverUrl tag has the following attributes:
- url: Location of the ArcGIS Server service (or other URL) to proxy. Specify either the specific URL or the root (in which case you should set matchAll="false").