Skip to content

Updated the MSSQL driver to use Azure tokens#496

Open
Dkairu wants to merge 1 commit intonewrelic:masterfrom
Dkairu:master
Open

Updated the MSSQL driver to use Azure tokens#496
Dkairu wants to merge 1 commit intonewrelic:masterfrom
Dkairu:master

Conversation

@Dkairu
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants