Solved! Go to Solution.
Let's try this:var serverInfo = new esri.ServerInfo(); serverInfo.server = 'https://www.mymanatee.org'; serverInfo.tokenServiceUrl = 'https://www.mymanatee.org/arcgis/tokens/generateToken'; esri.id.registerServers([serverInfo]);
Can you let us know if that works?
What is version of ArcGIS Server are you using (including service pack)?
{ "currentVersion" : 10.02, "soapUrl" : "http://WEBAPI20BETA/arcgis/services", "secureSoapUrl" : "https://WEBAPI20BETA:443/arcgis/services", "authInfo" : { "isTokenBasedSecurity" : true, "tokenServicesUrl" : "https://servicesbeta.esri.com/ArcGIS/tokens" } }
2.5 tried to guess the tokenServiceUrl but 2.6 does not.
Can you post the response from your REST info endpoint? Here's an example using servicesbeta.esri.com: http://servicesbeta.esri.com/ArcGIS/rest/info?f=json&pretty=true
And the response:{ "currentVersion" : 10.02, "soapUrl" : "http://WEBAPI20BETA/arcgis/services", "secureSoapUrl" : "https://WEBAPI20BETA:443/arcgis/services", "authInfo" : { "isTokenBasedSecurity" : true, "tokenServicesUrl" : "https://servicesbeta.esri.com/ArcGIS/tokens" } }
Hmm, having trouble I get garbage back.
�
This is a secure service (obviously) with ssl enabled.
Do you see a call to /ArcGIS/info when you load your page? You should see this in firebug or chrome dev tools.
You can see this in our identity manager sample: https://servicesbeta.esri.com/demos/widget/widget_identifymanager.html
Looking forward to what you find.