AnsweredAssumed Answered

esri.id not defined using ServerInfo();

Question asked by jeff.pace on Mar 21, 2014
Latest reply on Mar 21, 2014 by jeff.pace
So this code used to work and now I can't seem to figure out what changed

3.8 api
10.2.1 arcgis server through web adaptor

function initSecurity() {                                 serverInfo = new ServerInfo();                                 serverInfo.server = 'https://www.mymanatee.org';                                 serverInfo.tokenServiceUrl = 'https://www.mymanatee.org/arcgis03/tokens/generateToken';                                 serverInfo.shortLivedTokenValidity = 720;                                 esri.id.registerServers([serverInfo]);                                 this.serverInfo = serverInfo;                                 this.hcCred = hcCred;                             }


TypeError: esri.id is undefined


esri.id.registerServers([serverInfo]);

Outcomes