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.