oAuth wildcard match on proxy serverUrl

4822
10
12-04-2015 07:17 AM
PamRichmond
New Contributor III

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").
0 Kudos
10 Replies
PamRichmond
New Contributor III

Robert, thanks for trying. At least I know it's not off base. The username and password work, so it must be something with the application. Might be time to call support.

0 Kudos