Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure MFA Network Failure on iOS #196

Open
lucasahlgrenToxic opened this issue Aug 23, 2023 · 3 comments
Open

Azure MFA Network Failure on iOS #196

lucasahlgrenToxic opened this issue Aug 23, 2023 · 3 comments

Comments

@lucasahlgrenToxic
Copy link

Hi,

Recently I have experienced a strange bug related to the login procedure with Azure MFA on iOS. At times (not always), after entering the security code in the Microsoft Authenticator-app, the app is getting a network request failure related to a POST request to https://login.microsoftonline.com/XXX.onmicrosoft.com/oauth2/v2.0/token. As far as I know the problem only exists on iOS, not Android. Have experienced the issue on a physical iPhone XR running 16.3.1. Have anyone experienced something similar?

React Native: 0.67.4
react-native-azure-auth: 1.8.9

@eros-piccioni
Copy link

eros-piccioni commented Aug 28, 2023

Hi,
I'm currently experiencing something similar. After invoking:

    const tokensRes = await azureAuth.webAuth.authorize({scope, prompt: 'login'});

the authentication process begins correctly. After the MFA authentication (both with active and disabled face ID App lock) the request for authorization fails due a connection lost network error.

2023-08-28 14:42:12.630864+0200 feelspace[27682:8279093] [javascript] { scope: [ 'User.Read', 'Calendars.Read' ] }
2023-08-28 14:42:14.437315+0200 feelspace[27682:8279437] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C37] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-28 14:42:14.437368+0200 feelspace[27682:8279437] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C37] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-28 14:42:14.437402+0200 feelspace[27682:8279437] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C37] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-28 14:42:14.813364+0200 feelspace[27682:8279218] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C7] Hit maximum timestamp count, will start dropping events
2023-08-28 14:42:17.843460+0200 feelspace[27682:8279513] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C14] Hit maximum timestamp count, will start dropping events
2023-08-28 14:42:17.851977+0200 feelspace[27682:8279513] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C8] Hit maximum timestamp count, will start dropping events
2023-08-28 14:42:17.870299+0200 feelspace[27682:8279513] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C22] Hit maximum timestamp count, will start dropping events
2023-08-28 14:42:24.218607+0200 feelspace[27682:8279656] [connection] nw_connection_copy_connected_local_endpoint_block_invoke [C41] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
2023-08-28 14:42:24.218732+0200 feelspace[27682:8279656] [connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C41] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
2023-08-28 14:42:24.218787+0200 feelspace[27682:8279656] [connection] nw_connection_copy_protocol_metadata_internal_block_invoke [C41] Client called nw_connection_copy_protocol_metadata_internal on unconnected nw_connection
2023-08-28 14:42:40.333693+0200 feelspace[27682:8278871] [Snapshotting] Snapshotting a view (0x15a850600, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.
2023-08-28 14:42:42.063556+0200 feelspace[27682:8279801] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C36] Hit maximum timestamp count, will start dropping events
2023-08-28 14:42:42.068095+0200 feelspace[27682:8279801] [connection] nw_connection_add_timestamp_locked_on_nw_queue [C24] Hit maximum timestamp count, will start dropping events
2023-08-28 14:42:47.739581+0200 feelspace[27682:8278871] [BackgroundTask] Background Task 45 ("Called by feelspace, from -[AzureAuth presentAuthenticationSession:usingEphemeralSession:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
2023-08-28 14:42:53.301661+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C7] Receive failed with error "Socket is not connected"
2023-08-28 14:42:53.311037+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C7] Receive failed with error "Socket is not connected"
2023-08-28 14:42:53.312080+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C24] Receive failed with error "Socket is not connected"
2023-08-28 14:42:53.312232+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C24] Receive failed with error "Socket is not connected"
2023-08-28 14:42:53.314557+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C22] Receive failed with error "Socket is not connected"
2023-08-28 14:42:53.314783+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C22] Receive failed with error "Socket is not connected"
2023-08-28 14:42:53.318135+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C14] Receive failed with error "Software caused connection abort"
2023-08-28 14:42:53.318248+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C8] Receive failed with error "Software caused connection abort"
2023-08-28 14:42:53.318412+0200 feelspace[27682:8279515] [connection] nw_read_request_report [C36] Receive failed with error "Software caused connection abort"
2023-08-28 14:42:53.320439+0200 feelspace[27682:8279515] [quic] quic_conn_send_frames_for_key_state_block_invoke [C7.1.1.1:2] [-faf55a2131525129] unable to request outbound data
2023-08-28 14:42:53.322554+0200 feelspace[27682:8279515] [quic] quic_conn_send_frames_for_key_state_block_invoke [C24.1.1.1:2] [-fc8db341dd52aefd] unable to request outbound data
2023-08-28 14:42:53.324314+0200 feelspace[27682:8279515] [quic] quic_conn_send_frames_for_key_state_block_invoke [C22.1.1.1:2] [-c8b04ffa5e3cfe2d] unable to request outbound data
2023-08-28 14:42:53.330070+0200 feelspace[27682:8279515] Connection 46: received failure notification
2023-08-28 14:42:53.330197+0200 feelspace[27682:8279515] Connection 46: failed to connect 1:53, reason -1
2023-08-28 14:42:53.330218+0200 feelspace[27682:8279515] Connection 46: encountered error(1:53)
2023-08-28 14:42:53.331285+0200 feelspace[27682:8280143] Task <B49DF337-BEDD-4DBD-AFCC-1AE30E9FB153>.<3> HTTP load failed, 0/0 bytes (error code: -1005 [1:53])
2023-08-28 14:42:53.331464+0200 feelspace[27682:8280143] Task <B49DF337-BEDD-4DBD-AFCC-1AE30E9FB153>.<3> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=53, NSUnderlyingError=0x281ef8210 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: pdp_ip0[lte], ipv4, dns, expensive, _kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <B49DF337-BEDD-4DBD-AFCC-1AE30E9FB153>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <B49DF337-BEDD-4DBD-AFCC-1AE30E9FB153>.<3>"
), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://login.microsoftonline.com/xxx/oauth2/v2.0/token, NSErrorFailingURLKey=https://login.microsoftonline.com/xxx/oauth2/v2.0/token, _kCFStreamErrorDomainKey=1}

React Native: 0.71.12
react-native-azure-auth: 1.8.8

@varshiludani
Copy link

I am facing this too. Any updates for this? Did anyone manage to resolve this?

@phucph1998
Copy link

I am facing this too. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants