I am using IdentityManager to authenticate a layer from ArcGIS Online, which is working great. I also have several layers, Tiled, Dynamic, and Feature layers, that are coming from other servers that do not need authentication. I am using the SignInDialogWithTemplate example and the SignIn dialog keeps reappearing (about 20 times) even after a token is retrieved. Upon running clicking the 'OK' button in a SignIn dialog, the dialog collapses, then comes back (because it is running the 'Challenge' function again).
Does anyone know the event that triggers the IdentityManager Challenge method?
Thanks much.