Skip to content

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

Open

Description

@maxbrousseau

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
IMG_0004

Activity

  1. JRahnama commented on Jun 21, 2023

    @JRahnama
    Contributor

    @maxbrousseau Thanks for bringing this up. Is it possible to share a simple repro of your app including connection strings properties you have used?

  2. maxbrousseau commented on Jun 22, 2023

    @maxbrousseau
    Author

    Hi @JRahnama,

    Here is a small project to test the issue APP4Zip.zip.

    In the FirstViewController.cs set the value of:

    • DATASOURCE
    • INITIALCATALOG
    • USERID

    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

  3. moved this from To triage to Backlog in SqlClient Boardon Jan 8, 2026
  4. priyankatiwari08 commented on Sep 17, 2026

    @priyankatiwari08
    Contributor

    /triage

  5. github-actions commented on Sep 17, 2026

    @github-actions

    Generated by SqlClient Issue Auto-Triage for #2062 · copilot · auto · 79.5 AIC · ⌖ 13.4 AIC · ⊞ 11.9K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions