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.
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.