1

Does anyone have experience working with the IdentityManager object in the JS API 3.9?

I'm trying to understand what URL the findServerInfo() method expects.

I've tried the base REST url, and individual service URLs, but so far no luck.

1 Answer 1

1

IdentityManager.findServerInfo expects a string, which needs to include a protocol, domain and subdomain. You don't need to include the path to a specific resource. Here's an example using the Identity Manager sample, run this in the console:

esri.id.findServerInfo("https://servicesbeta.esri.com");

Path doesn't matter, so this:

esri.id.findServerInfo("https://servicesbeta.esri.com/nonsense/extra/stuff/");

Also works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.