AnsweredAssumed Answered

AuthenticationChallenge.continueWithCredential()

Question asked by mattSimmons on Sep 6, 2018

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?

Outcomes