Select to view content in your preferred language

Bypassing multiple Tokens

1129
1
06-01-2017 01:14 AM
SebastianBosbach
Occasional Contributor

Hi everyone,

I'm currently having the problem, that when I initialize a map with multiple tokens for multiple services on one server, the default login dialogs for the services appearing.

If I initialize the map with only one service from the server everything works fine.

The strangest behavior is that, when I close the login dialogs, the services are working fine with there tokens.

Using one server account to secure both services is no option for me.

So my question is, does anybody know this problem or had a similar problem?

The following code represents the object wich I'm using to initialize the IdentityManager. (only the real server adress is changed to "[server]")

result = Object
 credentials = Array[2]
  0 = Object
   creationTime = "1496311425650"
   expires = "1496315025650"
   resources = Array[1]
    0 = "https://[server].de/arcgis/rest/services/MAO/mao_demo_2017/MapServer"
    length = 1
    __proto__ = Array[0]
   scope = "server"
   server = "https://[server].de/arcgis"
   ssl = true
   token = "hsdN7wcE9InpFjH_NNZRSyYpOiOg1-AMWa_akcjCBxLFGuakYpDN9a__F0OB8Jb3owRmzzKulKLz85bmh-swIqUKDd4l5JInCGVvXFdlVgk."
   userId = "mao_user_Demo"
   validity = "7200"
   __proto__ = Object
  1 = Object
   creationTime = "1496311425681"
   expires = "1496315025681"
   resources = Array[1]
    0 = "https://[server].de/arcgis/rest/services/MAO/mao_standard_2017/MapServer"
    length = 1
    __proto__ = Array[0]
   scope = "server"
   server = "https://[server].de/arcgis"
   ssl = true
   token = "dlFkKxoSucnU5Oc4RKopeo5LXWGvO4JiGMec4l6XD9ym7iMzoX6YeWfrh75BnP90V_W6SGnm85M4E7BT6r8w8gZkyyG_0gL24JYm-WngbpQ."
   userId = "mao_user"
   validity = "7200"
   __proto__ = Object
  length = 2
  __proto__ = Array[0]
 oAuthInfos = Array[0]
 serverInfos = Array[1]
  0 = Object
   adminTokenServiceUrl = "https://[server].de/arcgis/admin/generateToken"
   currentVersion = 10.31
   hasServer = true
   server = "https://[server].de/arcgis"
   shortLivedTokenValidity = 60
   tokenServiceUrl = "https://[server].de/arcgis/tokens/"
   __proto__ = Object
  length = 1
  __proto__ = Array[0]
 __proto__ = Object‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos
1 Reply
SebastianBosbach
Occasional Contributor

Does nobody have a suggestion, I'm sill having this problem? 

I also tried closing the login dialog per code, but the dialog is shown regardless.

best regards

Sebastian

0 Kudos