Solved! Go to Solution.
registerServers takes an array of ServerInfo objects so you'd just need to create a ServerInfo object for each server and add it to the array you provide to registerServers. See the IdentityManagerBase help topic for details:
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identitymanagerbase.ht...
var serverInfo = new esri.ServerInfo(); serverInfo.server = 'https://www.mymanatee.org'; serverInfo.tokenServiceUrl = 'https://www.mymanatee.org/arcgis/tokens/generateToken'; esri.id.registerServers([serverInfo]);
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?
esri.ServerInfo is not a constructor
[Break On This Error] var serverInfo = new esri.ServerInfo();
Where are you running that code? It should be inside a function called by dojo.ready.
Nice! Glad we finally got that sorted.