Skip to content

Updated the MSSQL driver to use Azure tokens#496

Open
Dkairu wants to merge 1 commit into
newrelic:masterfrom
Dkairu:master
Open

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

Conversation

@Dkairu

@Dkairu Dkairu commented May 13, 2024

Copy link
Copy Markdown
Contributor

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

Kav91 commented May 14, 2024

Copy link
Copy Markdown
Member

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

Dkairu commented May 14, 2024

Copy link
Copy Markdown
Contributor Author

@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