You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
My current setup that works fine to connect to the the Azure SQL Server DB using a service account: SequelizeModule.forRoot({ dialect: 'mssql', host: envConfig.DB_HOST, port: envConfig.DB_PORT, username: envConfig.DB_USER, password: envConfig.DB_PASSWORD, database: envConfig.DB_NAME, models: [Model01, Model02], synchronize: true, dialectOptions: { options: { encrypt: true, enableArithAbort: true, connectionIsolationLevel: ISOLATION_LEVEL.READ_UNCOMMITTED, requestTimeout: 300000 } } })
I already have Azure AD integrating in my App that gives me accessToken. From tedious documentation I can see there is a way to specify authentication setting like this: authentication: { type: 'azure-active-directory-access-token', options: { token: 'access-token-from-azure-ad-login' } }
Could you please point me to the documentation/configuration how can I initiate DB connection for each of the logged-in user by passing their accessToken to the SequelizeModule configuration with Model definition I posted above.
Thanks,
The text was updated successfully, but these errors were encountered:
I'm submitting a...
My current setup that works fine to connect to the the Azure SQL Server DB using a service account:
SequelizeModule.forRoot({ dialect: 'mssql', host: envConfig.DB_HOST, port: envConfig.DB_PORT, username: envConfig.DB_USER, password: envConfig.DB_PASSWORD, database: envConfig.DB_NAME, models: [Model01, Model02], synchronize: true, dialectOptions: { options: { encrypt: true, enableArithAbort: true, connectionIsolationLevel: ISOLATION_LEVEL.READ_UNCOMMITTED, requestTimeout: 300000 } } })
I already have Azure AD integrating in my App that gives me
accessToken
. Fromtedious
documentation I can see there is a way to specifyauthentication
setting like this:authentication: { type: 'azure-active-directory-access-token', options: { token: 'access-token-from-azure-ad-login' } }
Could you please point me to the documentation/configuration how can I initiate DB connection for each of the logged-in user by passing their
accessToken
to the SequelizeModule configuration with Model definition I posted above.Thanks,
The text was updated successfully, but these errors were encountered: