Tedious: Tedious does not support Active Directory Password Authentication

Created on 1 Aug 2016  路  5Comments  路  Source: tediousjs/tedious

Azure SQL DB supports two new modes of authentication:
Active Directory Password Authentication
Active Directory Integrated Authentication

I tried getting Tedious to work with Active Directory Password Authentication but couldn't make it work. Is there config to support this mode of authentication or is this a missing feature in Tedious?

@arthurschreiber @arobson - Thoughts please.

Most helpful comment

i am having same issue with Active Directory Password Authentication

All 5 comments

i am having same issue with Active Directory Password Authentication

@navneetccna So are we

Azure Active Directory Authentication is currently not supported by Tedious.

@tvrprasad - Does Tedious still not support Azure Active Directory Authentication?

Thanks to the work done by @Hadis-Fard, starting with [email protected], tedious now supports Azure Active Directory Authentication.

There's a new top-level authentication option that allows specifying with authentication method to use:

new Connection({
  'config': {
    'server': '<server>',
    'authentication': {
      'type': 'azure-active-directory-password',
      'options': {
        'userName': '<userName>',
        'password': '<password>'
      }
    },
    'options': {
      'encrypt': true
    }
  }
})

Currently, [email protected] is available from the next release channel. You can install it using npm install tedious@next. It will soon be promoted to the latest channel and will be available via regular npm install tedious.

Please let us know if you run into any trouble using this connection option! 馃檱

Was this page helpful?
0 / 5 - 0 ratings