You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Active Directory Interactive login redirect to localhost on .net6 iOS #2062
I am trying to connect to an Azure SQL server that requires AD. In the connection string, I set the SqlAuthenticationMethod to ActiveDirectoryInteractive. When I call Open() on the SqlConnection, the login process opens in a Webview, I can enter my AD credentials + MFA. But when the login is successful, I get redirect to the Localhost and have no choice but to close the Webview.
Activity
JRahnama commentedon Jun 21, 2023
@maxbrousseau Thanks for bringing this up. Is it possible to share a simple repro of your app including connection strings properties you have used?
maxbrousseau commentedon Jun 22, 2023
Hi @JRahnama,
Here is a small project to test the issue APP4Zip.zip.
In the FirstViewController.cs set the value of:
My connection sting look something like: "Data Source=tcp:test.database.windows.net,1433;Initial Catalog=Test;User ID=[email protected];Connect Timeout=30;Authentication=ActiveDirectoryInteractive"
Let me know if you need more information
priyankatiwari08 commentedon Sep 17, 2026
/triage
github-actions commentedon Sep 17, 2026