dotnet / dotnet/SqlClient

The Active Directory Interactive login redirect to localhost on .net6 iOS

Open
#2,062 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
989
Forks
340
Avg merge
4d 18h
Merged PRs (30d)
69

Description

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.

![IMG_0003](https://github.com/dotnet/SqlClient/assets/81248209/5dc331a5-efb3-447a-a708-7d1866b45291)
![IMG_0004](https://github.com/dotnet/SqlClient/assets/81248209/4e12c68a-8eb8-4904-bebf-78016a0c06dd)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.