Change in identity manager between 2.5 and 2.6

2405
45
Jump to solution
01-31-2012 07:22 AM
JeffPace
MVP Alum
My identity manager works at 2.5.  I don't have any custom code in it at the moment, it just hits the first secure service and prompts for login (AWESOME THANK YOU)

when I change my application to 2.6, firebug throws and error saying

tokenserviceurl not defined

and hangs login.

What changed?
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
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();

View solution in original post

0 Kudos
45 Replies
derekswingley1
Frequent Contributor
What is version of ArcGIS Server are you using (including service pack)?
0 Kudos
JeffPace
MVP Alum
What is version of ArcGIS Server are you using (including service pack)?


10.03

10 service pack 3 for java
0 Kudos
derekswingley1
Frequent Contributor
2.5 tried to guess the tokenServiceUrl but 2.6 does not.

Can you post the response from your REST info endpoint? Here's an example using servicesbeta.esri.com:  http://servicesbeta.esri.com/ArcGIS/rest/info?f=json&pretty=true

And the response:
{
  "currentVersion" : 10.02, 
  "soapUrl" : "http://WEBAPI20BETA/arcgis/services", 
  "secureSoapUrl" : "https://WEBAPI20BETA:443/arcgis/services", 
  "authInfo" : {
    "isTokenBasedSecurity" : true, 
    "tokenServicesUrl" : "https://servicesbeta.esri.com/ArcGIS/tokens"
  }
}
0 Kudos
JeffPace
MVP Alum
2.5 tried to guess the tokenServiceUrl but 2.6 does not.

Can you post the response from your REST info endpoint? Here's an example using servicesbeta.esri.com:  http://servicesbeta.esri.com/ArcGIS/rest/info?f=json&pretty=true

And the response:
{
  "currentVersion" : 10.02, 
  "soapUrl" : "http://WEBAPI20BETA/arcgis/services", 
  "secureSoapUrl" : "https://WEBAPI20BETA:443/arcgis/services", 
  "authInfo" : {
    "isTokenBasedSecurity" : true, 
    "tokenServicesUrl" : "https://servicesbeta.esri.com/ArcGIS/tokens"
  }
}


Hmm, having trouble I get garbage back.
   � 


This is a secure service (obviously) with ssl enabled.
0 Kudos
derekswingley1
Frequent Contributor
Do you see a call to /ArcGIS/info when you load your page? You should see this in firebug or chrome dev tools.

You can see this in our identity manager sample:  https://servicesbeta.esri.com/demos/widget/widget_identifymanager.html
0 Kudos
JeffPace
MVP Alum
Hmm, having trouble I get garbage back.
   � 


This is a secure service (obviously) with ssl enabled.


I tried that same like on my server that does not have security, and it only works on port 8343 with same response.  8399 gives page not found, is that correct?
0 Kudos
JeffPace
MVP Alum
Do you see a call to /ArcGIS/info when you load your page? You should see this in firebug or chrome dev tools.

You can see this in our identity manager sample:  https://servicesbeta.esri.com/demos/widget/widget_identifymanager.html


I can't test at the moment.  This is our production server and it is in use, and unfortunately we do not have a development environment to support ssl so we have to deploy to test (i know, worst business practice).

Once the field guys are done for the day i will roll production back to 2.6 and test.
0 Kudos
derekswingley1
Frequent Contributor
Looking forward to what you find.
0 Kudos
JeffPace
MVP Alum
Looking forward to what you find.


anything else i can test in the meantime?
0 Kudos