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

Support for 'Active Directory Interactive' authentication #429

Open
1 of 2 tasks
sachinshahredmane opened this issue Oct 25, 2023 · 3 comments
Open
1 of 2 tasks

Support for 'Active Directory Interactive' authentication #429

sachinshahredmane opened this issue Oct 25, 2023 · 3 comments

Comments

@sachinshahredmane
Copy link

problem

Try to connect to an Azure SQL database using the Active Directory Interactive authentication scheme.

open FSharp.Data

[<Literal>]
let connectionString = @"Data Source=asdf.database.usgovcloudapi.net;Initial Catalog=asdf;User [email protected];Authentication='Active Directory Interactive';TrustServerCertificate=True;Connect Timeout=30"

do
    use cmd = new SqlCommandProvider<"select * from records", connectionString>(connectionString)

    cmd.Execute(topN = 3L) 

This provides the following error message:

Severity	Code	Description	Project	File	Line	Suppression State
Error	FS3033	The type provider 'FSharp.Data.SqlCommandProvider' reported an error: Cannot find an authentication provider for 'ActiveDirectoryInteractive'.	CopyDataDbToDb	C:\projects2\CopyDataDbToDb\CopyDataDbToDb\Program.fs	7	Active

solution

Ideally, that the authentication scheme is supported

more info

For now, I have copied the DB onto my local machine so I can work with it, but the data will quickly become stale.

What you can do

  • I consider contributing the feature
  • I consider help in testing the feature
@smoothdeveloper
Copy link
Collaborator

@sachinshahredmane, could you confirm you can connect to the same database using a plain SqlConnection from System.Data.SqlClient namespace with the same connection string?

@sachinshahredmane
Copy link
Author

I was only able to connect using the Microsoft.Data.SqlClient namespace. Any chance of upgrading to that driver?

@sachinshahredmane
Copy link
Author

Well, I just found #374 so I think I will wait to see if/how things develop.

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

2 participants