-
Notifications
You must be signed in to change notification settings - Fork 443
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
Access token authentication #863
Conversation
609d665
to
bcea07b
Compare
@Hadis-Fard for CI, can you generate an access token that has no expiration date? 🤔If that's possible, we can add another build steps similar to the existing Azure steps by specifying the token via an environment variable. |
@arthurschreiber sure thing! 😃 |
Hi guys, release please??? |
This adds a new authentication type called `azure-active-directory-access-token` which allows authenticating against a Azure SQL Database via a previously generated authentication token (e.g. via the `node-adal` library). Example configuration: ```json { "server": "some.database.windows.net", "authentication": { "type": "azure-active-directory-access-token", "options": { "token": { "accessToken": "...token..." } } } } ```
bcea07b
to
28aa637
Compare
🎉 This PR is included in version 6.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi Team, Below is my connection config. Is there anything that I am missing or due to a bug?
One question related Connection.Js file (Line#2052 or near in the call: context.acquireTokenWithUsernamePassword(..),
Can you please share your inputs on this? Thanks, Praveen |
Hey @Praveenpvs Sorry for the trouble. I think the issue you’re running into is the bug described and fixed in #888. A new release containing the fix will be pushed into the ‘next’ release channel shortly. |
Hi Arthur!
So, can you please check again? Thanks, Praveen |
Hi @Praveenpvs |
Correct, thanks Micheal. Its working fine for me now. |
No problem, glad to help. |
Hi there this is my actual code
` could anybody help? |
Hi @kandasj, I am not sure whether the response to your axios response has the same as mine. If you have the same response structure with mine what you can do is change the line "token:token.access_token" to "token:token.accessToken". Hope this helps. The response on my side is an object like this: |
Fixes #745.