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

Documentation on how to use SqlAuthenticationProvider #640

Closed
aaomidi opened this issue Jul 8, 2020 · 4 comments
Closed

Documentation on how to use SqlAuthenticationProvider #640

aaomidi opened this issue Jul 8, 2020 · 4 comments
Labels
📃 Documentation Use this label for any documentation changes

Comments

@aaomidi
Copy link

aaomidi commented Jul 8, 2020

How do I register my own AuthenticationProvider? What changes do I need to make to the connection string to call my custom AcquireTokenAsync method?

@cheenamalhotra
Copy link
Member

Hi @aaomidi

You'd need to just set provider as I did in example here: Custom Auth Provider Example.
This example is part of PR #597 so will be published later, but you can refer usecase from here.

Also to mention, we're making "ActiveDirectoryAuthenticationProvider" public soon (with PR #597) so users can override specific properties and let driver take care of the rest.

Please feel free to test and review the PR if it solves the purpose of your overriding and let us know if we can improvise it further :)

Thanks!

@cheenamalhotra
Copy link
Member

Hi @aaomidi

Feel free to close the issue, if you like.
We will take care of documentation with the PR #597 :)

@karinazhou karinazhou added the 📃 Documentation Use this label for any documentation changes label Jul 22, 2020
@cheenamalhotra cheenamalhotra added this to To do in SqlClient v2.1 via automation Jul 22, 2020
@cheenamalhotra cheenamalhotra moved this from To do to Review in progress in SqlClient v2.1 Jul 22, 2020
@cheenamalhotra
Copy link
Member

FYI - Documentation Updates follow in this file:
https://github.com/dotnet/SqlClient/pull/597/files#diff-40729a3831f0d4cce99828d5f5f80fb3

@aaomidi
Copy link
Author

aaomidi commented Jul 22, 2020

Thank you so much!

@aaomidi aaomidi closed this as completed Jul 22, 2020
SqlClient v2.1 automation moved this from Review in progress to Done Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📃 Documentation Use this label for any documentation changes
Projects
No open projects
Development

No branches or pull requests

3 participants