Select to view content in your preferred language

Proxy not working

3536
1
07-17-2014 10:04 AM
AlexGole
Deactivated User

Hi all,

I am trying to set up a .NET proxy page in order to authenticate clients to my web app but it is not working. I keep hitting the ArcGIS Server loggin and password.

Here is my script:

<?xml version="1.0" encoding="utf-8" ?>

<ProxyConfig allowedReferers="*"

             mustMatch="true">

    <serverUrls>

        <serverUrl url="http://services.arcgisonline.com"

                   matchAll="true" />

    <serverUrl url="http://webgisdevint1/ArcGIS/rest/services"

                   matchAll="true"/>

    <serverUrl url="http://webgisdevint1/arcgis/rest/services/Alex_Try/AllOptions/MapServer"

    accessToken="adNls_7vLufJNVb3vVJevwyB2uuqS09h9ih5RV4-ptnHHqAToZU_h3GH1QFV4S32" />

    </serverUrls>

</ProxyConfig>

Is there anything wrong in my config file?

Thank you,

Alex

Tags (1)
0 Kudos
1 Reply
KellyHutchins
Esri Frequent Contributor

For your map service the access token needs to be an OAuth2 access token and the service you are trying to access must be owned by the user accessing it.

If you are trying to use ArcGIS Server token based authentication then the proxy does not support specifying a token. Instead you'll want to specify the username and password and a token will be dynamically generated for you.

0 Kudos