-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Knex does not seem to pass authentication options through to tedious #4556
Comments
@alex-paterson Can you replicate working configuration with tedious without sequelize and paste it here? See https://github.com/knex/knex/blob/master/lib/dialects/mssql/index.js -> |
@kibertoad Thanks for the response here. Here's the equivalent functional tedious configuration:
|
Should note:
For the above tests. |
The issue is on this line, where knex/lib/dialects/mssql/index.js Line 39 in c335fda
Therefore, I was able to successfully authenticate with the database by passing the undocumented parameter
|
I just ran into this issue, with a bit of a twist, because the config object was also mapped from environment variables. It's a tough nut to crack, because the Tedious config object has an I think renaming the |
Is this still an issue? I may be able to help. |
Environment
Knex version: 0.95.6
Database + version: MSSQL AzureDB
OS: MacOS
Bug
I have an application that is using both sequelize and knex to talk to an MSSQL database. I believe both of these libraries are using tedious under the hood and are supposed to pass configuration options through to this underlying library. I am trying to use
azure-active-directory-password
authentication strategy to connect to my Azure-managed database.I have no problem connecting using sequelize with the following options:
However I am receiving an error when using what I expect to be an equivalent configuration with knex:
The resulting error is:
I have tried many variations on the configuration object passed to knex with no success. Does knex not support passing these authentication parameters to tedious?
Thanks
The text was updated successfully, but these errors were encountered: