Select to view content in your preferred language

AuthenticationChallenge.continueWithCredential()

220
0
09-06-2018 04:42 PM
MatthewSimmons1
New Contributor

I am trying to supply credentials for a secure map service. I have an ArcGISMapImageLayer on my map, and have code listening to the AuthenticationManager.onAuthenticationChallenge signal.

I've gotten as far as hearing the challenge, displaying a view for a login to portal, logging in, receiving an oAuth token and then getting an ArcGIS token.

My problem is, once that's all happened, and I call AuthenticationChallenge.continueWithCredential() with the new credential I create containing the token, it seems to be ignored - the layer or authentication manager doesn't seem to 'retry' loading the layer using the new token.

Is there anything I should be on the lookout for that I may be doing wrong?

0 Kudos
0 Replies