I have upgrade the esri js api 3.13 to 3.14 in my app. I am using loadCredentials method to prevent the authentication popup for secure layers that includes Identity Manager to intialize the Arcgis Credentials. It will working fine in ESRI JS API 3.13 but it does not working after upgrade the version to 3.14.
Any ideas?
Solved! Go to Solution.
I was using this method and it broke at 3.14 as well. In the past I have seen subtle undocumented changes occur with IdentityManager. In this case it appears that you now have to supply the trailing "/arcgis" in the credential objects you hydrate, e.g.:
credentials: [{
userId: username,
server: serverName+ "/arcgis", //now we have to add this suffix at 3.14
token: token,
expires: now + 36e5,
ssl: false,
creationTime: now,
resources: [],
scope: "server",
validity: 60
}]
palanisamy ramalingam, when you say you are using the loadCredentials method, are you referring to something in the JSAPI or the method used in this sample - Identity Manager with info persisted client side | ArcGIS API for JavaScript ?
Yes Bjorn Svensson, I have used the same method which is used in this sample - https://developers.arcgis.com/javascript/jssamples/widget_identitymanager_client_side.html
I was using this method and it broke at 3.14 as well. In the past I have seen subtle undocumented changes occur with IdentityManager. In this case it appears that you now have to supply the trailing "/arcgis" in the credential objects you hydrate, e.g.:
credentials: [{
userId: username,
server: serverName+ "/arcgis", //now we have to add this suffix at 3.14
token: token,
expires: now + 36e5,
ssl: false,
creationTime: now,
resources: [],
scope: "server",
validity: 60
}]