sqlalchemy-teradata icon indicating copy to clipboard operation
sqlalchemy-teradata copied to clipboard

dialect requires username password, which breaks using trusted credentials

Open patter001 opened this issue 6 years ago • 3 comments

the create_connect_args requires username password in the connect string instead of allowing for trusted credentials. It should default to None for username and password if they are not in the connect string

patter001 avatar Jun 05 '18 16:06 patter001

@patter001 Could you elaborate more on "allowing for trusted credentials"?

sandan avatar Jul 18 '18 19:07 sandan

if the username/password are "None" then on windows, the next layer of code (its been a while I forget which piece) sees the None and instead attempts to use windows credentials. This allows for our higher level tools to query without having to prompt user for credentials or save in to the code.

patter001 avatar Jul 18 '18 19:07 patter001

By next layer of code do you mean the OdbcConnection? All it will do is pass it to the ODBC layer.

The username and password can be saved elsewhere and read into the code (environment variables, text files, etc.)

sandan avatar Jul 21 '18 01:07 sandan