Edit app template-unable to access the authentication service

2326
4
03-31-2014 12:10 PM
StevenSpradling
New Contributor III
I have a web map that includes one feature service that requires a user log-in.  When I publish it as an application through AGO everything works perfectly but if I download the application source code from git hub I get the "unable to access the authentication service" error after attempting to log in.  The map shows up correctly (minus the secure service) so I know I configured it correctly but there must be something I'm missing somewhere.
Tags (2)
0 Kudos
4 Replies
IanWittenmyer
Esri Contributor
Here are a few questions that will hopefully assist me in understanding the cause of the problem.

Which browser are you using?
Is the feature service hosted online or an arcgis server?
If server, what is the version of arcgis server?
Does the server require requests over https?
0 Kudos
StevenSpradling
New Contributor III
Which browser are you using? I've tried it in Chrome, Firefox and IE
Is the feature service hosted online or an arcgis server? it's hosted on my Amazon server
If server, what is the version of arcgis server? 10.1
Does the server require requests over https? I don't think so, how can I check this?

The editable feature service and login works fine if I use the application directly from AGO.  I only have the issue with log in when I download the code and try to run it off my server.
0 Kudos
VenusScott
Occasional Contributor III

Kristy did you ever get a response or solution to this? I have a similar issue.

0 Kudos
KellyHutchins
Esri Frequent Contributor

Venus and Kristy,

Most likely you need to setup a proxy on your web server then specify the url to that proxy in the edit template. Details on the proxy can be found here:

Esri/resource-proxy · GitHub

0 Kudos