ESRI JS API 3.14 does not support "Identity Manager" persisted login

3040
3
Jump to solution
09-01-2015 06:07 AM
PalanisamyRamalingam
New Contributor II

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?

1 Solution

Accepted Solutions
DanielWalton
Occasional Contributor

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

}]

View solution in original post

3 Replies
BjornSvensson
Esri Regular Contributor

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 ?

0 Kudos
PalanisamyRamalingam
New Contributor II
0 Kudos
DanielWalton
Occasional Contributor

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

}]