Select to view content in your preferred language

TokenUrl must belong to the same domain as the server

3565
0
09-11-2014 05:21 AM
wadsonmakari
Occasional Contributor

Dear all,

 

I am trying to use the identity manger to authenticate all users before access a secure service running on ArcGIS Server 10.2. The application is built using Silverlight api 3.2

 

When I run the app from the server where it is deployed on it runs as I expected  i.e. challenges each user before showing the secure service layer on my map.

 

Running the app from any other machine throws and error "TokenUrl must belong to the same domain as the server. at ESRI.ArcGIS.client.IdentityManger.ServerInfo.WebRequestCompleted(..."

 

In my code I am challenging each user with the following line

 

 

 

IdentityManager.Current.ChallengeMethod = SignInDialog.DoSignIn;

 

Is there any way I can get round this problem? I have tried this but I still get the same error

 

 

var serverInfo = new IdentityManager.ServerInfo()

{

 

serverUrl= "http://myserver/rest/services",

 

TokenServiceUrl = "http://myserver/tokens"

}


IdentityManager.Current.RegisterServers(new[] { serverInfo });

 

Looks like identity manager is ignoring serverInfo

 

Any ideas will greatly appreciated.

 

Regards,

 

Makari.

 

 

 

 

 

 

0 Kudos
0 Replies