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

Updated the MSSQL driver to use Azure tokens #496

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dkairu
Copy link
Contributor

@Dkairu Dkairu commented May 13, 2024

The current MSSQL driver uses username and password to authenticate but not enough options are offered to authenticate against MS Entra ID formerly Active directory…This PR gives additional options like using tokens that are dynamically generated from Entra ID/ Active Directory instead of user password to provide flexibility of using the integration.

@Kav91
Copy link
Member

Kav91 commented May 14, 2024

Is this backwards compatible with the existing implementation? I can't see anything in the main readme confirming this.

@Dkairu Dkairu changed the title Updated the MSSQL driver to use an Azure tokens Updated the MSSQL driver to use Azure tokens May 14, 2024
@Dkairu
Copy link
Contributor Author

Dkairu commented May 14, 2024

@Kav91 Yes as a matter of fact it uses the modules from the original driver https://github.com/denisenkom/go-mssqldb/blob/master/azuread/driver.go. I did test with a user name and password and it works. This is also called out in the main README see https://github.com/denisenkom/go-mssqldb/tree/master?tab=readme-ov-file#azure-active-directory-authentication

// Import the Azure AD driver module (also imports the regular driver package)

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

Successfully merging this pull request may close these issues.

None yet

2 participants