-
Notifications
You must be signed in to change notification settings - Fork 500
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
Azure Active Directory authentication #548
Conversation
Codecov Report
@@ Coverage Diff @@
## master #548 +/- ##
==========================================
- Coverage 68.9% 66.89% -2.01%
==========================================
Files 22 24 +2
Lines 5068 5450 +382
==========================================
+ Hits 3492 3646 +154
- Misses 1370 1582 +212
- Partials 206 222 +16
Continue to review full report at Codecov.
|
@paulmey Lastly, how would you propose we test (CI) this code so it doesn't break? SQL Server (hosted) has a free dev license, but this looks like Azure specific? |
Okay, I just read through the Issue history. I think I understand the situation now. I assume we will keep this PR a s a draft and NOT merge it, but rather merge each contribution by itself. |
@kardianos I was not sure which way to go for CI. I don't know of services that would allow for running actual tests against an Azure AD authenticated service, let alone run with access to the managed service identity endpoint used for some of the scenarios. I see that @paulmey has added some tests at a protocol level, which is one avenue, the other might be to try to bring in some sort of mocking framework to help by abstracting the Azure-specific code. I ran most of my tests by spinning up actual Azure infrastructure, using the Terraform example and a Pay-As-You-Go account, and I am also using the code at my company where they are using Azure infrastructure that supports the MSI and AD user logins. I'm happy to try to adopt an approach that works for you! |
@kardianos, I mainly started this PR to merge the approaches and bring the code coverage up with some more "unit" tests that don't need a real instance. I'm also fine with seeing if we can provide a SQL Azure instance for CI, but it will be a bit of work in appveyor etc. to keep credentials secret and fresh...? |
Hi @paulmey, as your original changes were merged first, I rebased #547 on top of them. So far I have not tried to add in your new tests from this PR while waiting for confirmation that the revisions I'm proposing are on the right track. I am happy to do the work to bring them over, though! I think I have broken the merge for this PR after rebasing. 🙈 |
Feel free to bring over the tests, this branch will stay around. Aborting this PR. |
Merging #547 and #546 to fully fix #446