Not passing `domain` value for identifying the tenantId
See original GitHub issueI’ve been trying to connect to my mssql DB using Azure AD Auth on sequelize, however I get the following message Security token could not be authenticated or authorized.. After debugging inside sequelize, then tedious and finally ms-rest-nodeauth, I realized that ms-rest-nodeauth does not get the options.domain value. The function loginWithUsernamePassword from tedious login.ts file is not passing that value to the nodeauth function, even when tedious does get it from sequelize. I wonder if it is due to some specific reason or there may be an issue here. I debugged the Auth process and was able to make the Azure AD Auth connection with my mssql DB if I set up the options.domain value manually when the auth process gets to withUsernamePassword function (stopping here with a breakpoint). If this is not the correct way for setting this up, I’ll need some help from Tedious team. Any one?
Using: sequelize@5.22.3 tedious@6.4.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (9 by maintainers)

Top Related StackOverflow Question
Awesome, I’d appreciate this help since we’re required for security reasons to change our connection to Azure AD Auth. Thanks! @IanChokS
Awesome, thanks for all the help and support!