microsoft-authentication-library-for-objc icon indicating copy to clipboard operation
microsoft-authentication-library-for-objc copied to clipboard

No return during interactive authentication with connectivity issues

Open vitor-desouza opened this issue 2 years ago • 1 comments

Hi team,

I am simulating some connectivity issues like no internet connection and 100% packet loss in our iOS app, however I am not getting any callback from acquireToken method when facing these issues after credentials have been granted and the app remains in infinite loading.

I only had this problem after the pages were fully loaded, when I start loading these pages without an internet connection for example, I receive the callback normally. I tried some workarounds to track down these scenarios, like overriding the navigationDelegate property of the custom WebView we are using, but I got some assertion errors.

Is there any configuration that impacts this behavior or can I set a timeout for the authentication process?

vitor-desouza avatar Feb 09 '24 12:02 vitor-desouza

@vitor-desouza Could you elaborate your use case? I'm assuming you are calling to acquire token interactively. In your simulation at what point are you killing the internet connection?

ameyapat avatar Feb 15 '24 22:02 ameyapat