Hai Cao
0bc2a50d78
Add token expiration handling for AzureMFA auth ( #16936 )
...
* refresh azure account token if it's expired before sending query/list requests
* fix several connection checks && add more logging
* fix async UI glitch during token refreshing
* cleanup
* minor fix
* add test for refreshAzureAccountTokenIfNecessary
* address comments
* comments
* comments
* comments
* error handling
2021-09-02 17:24:45 -07:00
Charles Gagnon
f35576ae7f
Enable no-floating-promises for azurecore ( #16946 )
...
* Enable no-floating-promises for azurecore
* few more
* fix compile
2021-09-02 09:20:32 -07:00
Charles Gagnon
e7a719ceb4
Fix extension linting warnings and enable extension linting in pipelines ( #16922 )
...
* Fix extension linting errors
* fix test
2021-08-27 15:13:01 -07:00
Charles Gagnon
5b3fbaa5ff
azdata.Account -> AzureAccount ( #16842 )
2021-08-20 10:28:33 -07:00
Charles Gagnon
ea6e03f826
Fix azure account tree subscription check ( #16822 )
...
* Fix azure account tree subscription check
* comment
2021-08-18 14:35:16 -07:00
Charles Gagnon
df49d67f7d
Consolidate getSubscriptions ( #16821 )
...
* Consolidate getSubscriptions
* Undo test change
2021-08-18 12:56:45 -07:00
Charles Gagnon
a92ba424ac
Handle errors fetching subscriptions from subset of tenants ( #16765 )
2021-08-16 15:08:08 -07:00
Charles Gagnon
0906030aa2
Expose AzureAccount typings to other extensions ( #14604 )
2021-03-09 10:16:52 -08:00
Karl Burtram
8cf5e4c9fd
Revert "Verify the token belongs to the proper user. ( #11593 )" ( #13321 )
...
This reverts commit 45cbaca31f .
2020-11-09 15:32:21 -08:00
Alan Ren
7819d25c95
resource label update ( #13129 )
...
* resource label update
* preserve existing behavior
* fix connection group color
* comments
2020-10-29 14:42:01 -07:00
Charles Gagnon
6550c032ee
Azure provider cleanup and add rg property ( #13030 )
...
* Move Azure DataGrid Provider into own class
* Fix compile
2020-10-22 10:30:01 -07:00
Amir Omidi
45cbaca31f
Verify the token belongs to the proper user. ( #11593 )
...
* Verify the user signed into the correct account
* Add and fix tests
* Fix tests
2020-10-09 10:27:12 -07:00
Charles Gagnon
84ca18b428
Remove extra id property from azure subs and add type name helper ( #12145 )
...
* Remove extra id property from azure subs and add type name helper
* case
* Change a few names
2020-09-04 16:01:05 -07:00
Charles Gagnon
c2320831f7
Add subscription ID to all graph query items ( #12133 )
...
* Add subscription ID to all graph query items
* fix machine-learning
2020-09-04 13:08:10 -07:00
Charles Gagnon
9004769865
Update azure graph queries to allow multiple subs ( #12124 )
2020-09-03 19:07:37 -07:00
Amir Omidi
18dc7e75ff
use azurecore and azureresource as typings ( #11892 )
...
* use azurecore and azureresource as typings
* Remove unrelated file
2020-08-20 14:45:22 -07:00
Sumit Kumar
9df51b9936
test case failing ( #11609 )
...
* initial draft
* change tenant
* assertion error
* fixed failing test
2020-08-04 11:03:26 -07:00
Amir Omidi
587abd43c2
Large cleanup of AzureCore - Introduction of getAccountSecurityToken and deprecation of getSecurityToken ( #11446 )
...
* do a large cleanup of azurecore
* Fix tests
* Rework Device Code
* Fix tests
* Fix AE scenario
* Fix firewall rule - clenaup logging
* Shorthand syntax
* Fix firewall tests
* Start on tests for azureAuth
* Add more tests
* Address comments
* Add a few more important tests
* Don't throw error on old code
* Fill in todo
2020-07-22 15:03:42 -07:00
Amir Omidi
5613a97fae
Use a unique key for the accounts ( #11380 )
...
* Use a unique key for the accounts
* Fix some tests
* Simplify display name
* Change to a random UUID
2020-07-17 13:39:53 -07:00
Amir Omidi
648174e91d
Tenant filter fix ( #11411 )
...
* Fix tenant filter
* Test for the azure filter feature
2020-07-17 12:46:22 -07:00
Charles Gagnon
cbf3cd7445
Remove AzureCore ApiWrapper ( #11335 )
2020-07-13 18:11:54 -07:00
Amir Omidi
127617402f
Enables a disabled test ( #10900 )
...
* Enables a disabled test
* Test is irrelevant
* Remove unused import
2020-06-15 13:22:21 -07:00
Charles Gagnon
3e5421dc43
Add Azure region enum and helper methods to azurecore ( #10776 )
...
* Add Azure region enum and helper methods
* change module definition
* Add comments
* fix names
* Optional param
2020-06-08 07:39:45 -07:00
Amir Omidi
7d31239e64
Open in azure portal ( #10535 )
...
* initial commit to get it working
* Change configuration to use package.nls.json
* Make the necessary plumbing
* Support multi cloud
* Move the menu item to the bottom
* Fix failing tests
* Fix the tests
2020-05-29 19:59:29 -07:00
Amir Omidi
65a4a56fd7
Prompt for consent when interaction is required ( #10373 )
...
* Reprompt for consent
* Remove unused imports
* Fix typos
* Change the tenant we re-auth too
* Handle the prompt properly
* prompt for consent dialog
* Information message modal
* product name
* Change message per PM feedback
2020-05-21 00:03:21 -07:00
Amir Omidi
ce12bae00f
Remove unused dependencies ( #9833 )
...
* Remove the adal dependency
* Delete unused files
* Remove request as well
2020-04-02 17:16:54 -07:00
Amir Omidi
a9240f38f7
Fix a few problems with new Azure auth ( #9760 )
...
* Fix a few problems
* Fix bug
* One resource per line
* Dispose before cleaning
* Dispose the event handler
* Dispose webserver
2020-03-27 13:18:27 -07:00
Amir Omidi
c15ac474d7
New Azure Auth Provider ( #9664 )
...
* Fixes how azure auth is handled on the azure pane
* New auth provider
* Add externals
* Feedback
* Change azdata
* Fix other issues
* Review feedback
* Feedback
* Feedback updates
* Move AKV to azdata.d.ts
* Fix yarn.lock
* Update third party notices
2020-03-23 12:39:25 -07:00
Amir Omidi
e100b8f88e
A simple file and memory based database ( #9649 )
...
* File and memory database
* Add read and write hook tests
2020-03-18 12:20:25 -07:00
Amir Omidi
ae1f3df490
Fixes how azure auth is handled on the azure pane ( #9654 )
2020-03-18 11:50:25 -07:00
Amir Omidi
cc6cc2889a
Simple web server component ( #9648 )
...
* Simple web server component
* More testing
2020-03-17 16:32:06 -07:00
Charles Gagnon
10b681b3c8
Add Arc Resources to Azure view ( #9271 )
...
* Initial work
* Add setting change handler
* Fix tests
* Update loc names and add preview tag
* Remove TODOs
2020-02-24 08:15:27 -08:00
Charles Gagnon
637a33c7a7
Support for removing hardcoded deployment options ( #8986 )
...
* Support for removing hardcode deployment options
* Add missing file
* Generalize errors and make name and id required. Sort dropdowns.
* Fix test
* Capitalize text
2020-01-30 10:35:37 -08:00
Charles Gagnon
2dfd75352f
Add coverage for extension tests ( #8961 )
...
* wip
* Add code coverage files to all extensions
* Update vscodetestcover
* Update yarn.lock
* Update CMS yarn.lock
* Update vscodetestcover version
2020-01-28 07:23:45 -08:00
Anthony Dresser
bd7aac8ee0
Merge from vscode a234f13c45b40a0929777cb440ee011b7549eed2 ( #8911 )
...
* Merge from vscode a234f13c45b40a0929777cb440ee011b7549eed2
* update distro
* fix layering
* update distro
* fix tests
2020-01-22 13:42:37 -08:00
Charles Gagnon
7ecb6b4427
Change test timeout for extension unit tests to 10sec ( #8848 )
2020-01-08 13:49:34 -08:00
Kevin Cunnane
067af76904
Azure: add PostgresSQL support and refactor to use resource graph ( #8046 )
...
* Azure: add PostgresSQL support and refactor to use resource graph
- Refactored to use @azure/arm-resourcegraph for all queries
- Refactored database lookup to do just 2 queries
(all servers, all DBS) instead of waiting serially on 1 query per RG
- Added Azure Database for PostgresSQL Servers support in the tree
- Removed use of older azure APIs in preference to ones compatible with resource graph
- Note: Had to use v1.0 of new subscriptions package because resourcegraph is 2month out of date vs all other packages
2019-10-28 09:47:38 -07:00
Kevin Cunnane
806d807eae
Refactor Azure Core extension for easier resource addition ( #7958 )
...
Consolidated most logic into a base class and common resource request pattern.
Reduces cost to add new providers, which will help for SQL Managed Instance support
2019-10-23 16:29:51 -07:00
Charles Gagnon
effa50a9bd
Add unstable test params for core and extension tests ( #7513 )
...
* Add unstable test params for core and extension tests
* unset invert options for unstable script runs
* Fix copypasta
* Add nogpu to dacpac tests
2019-10-07 10:18:02 -07:00
Charles Gagnon
fab3c3a7c3
Switch to aes-256-cbc cipher for Azure account storage ( #6412 )
...
* Switch to aes-256-cbc cipher for Azure account storage
* Add unit test
* Add unit test
* Remove unnecessary code
2019-07-18 16:13:52 -07:00
Kevin Cunnane
6d56701b5b
Refactor to remove controller and static instance ( #5735 )
2019-05-29 17:23:23 -07:00
Charles Gagnon
cc397a012f
Revert "Switch to vscodetestcover for running extension tests ( #5458 )" ( #5487 )
...
This reverts commit dbac187b44 .
2019-05-14 17:16:01 -07:00
Charles Gagnon
dbac187b44
Switch to vscodetestcover for running extension tests ( #5458 )
...
* Update vscode dependency (needed for test runner) to pull latest 1.x version
* Update to use 1.1.5 instead
* Undo change to vscode engine version
* Switch to using vscodetestcover for running tests
* Switch to cobertura output for coverage reports
* Remove vscode dependency from profiler extension
* Update yarn.lock with combined changes
2019-05-13 11:39:09 -07:00
Kevin Cunnane
022761aa4b
Fix #4089 Linked account cancel ( #5347 )
...
VSCode serialization changed rejection handling to only serialize errors, which caused things to break
- Changed to return either account info or a cancel message in the resolve
- Rewrote to use promises. Tracking how to return canceled through 4+ thenables was way trickier than just using a promise
- Updated unit tests to handle new scenario
- Tested integration tests, realized they a) didn't run and b) didn't passed.
- Added vscode dev dependency to fix run issue
- Fixed tests to account for behavior changes in tree state.
2019-05-06 09:13:03 -07:00
Anthony Dresser
58959ef35e
Enable stricter compile options on extensions ( #5044 )
...
* enable stricter compile settings in extensions
* more strict compile
* formatting
* formatting
* revert some changes
* formtting
* formatting
2019-04-23 11:18:00 -07:00
Karl Burtram
c5a32d8373
Show user email address in account picker ( #5015 )
...
* Show user email address in account picker
* Fix build break and remove Azure account from sqlops namespace
2019-04-12 17:23:48 -07:00
Matt Irvine
86bac90001
Merge VS Code 1.31.1 ( #4283 )
2019-03-15 13:09:45 -07:00
Karl Burtram
84890eb1b4
Update product references from 'sqlops' to 'azdata' ( #4259 )
...
* Update extensions to use azdata
* Switch core code to use azdata
2019-03-01 13:59:37 -08:00
Vincent Feng
50e2251e74
Feature/extensible azure resource explorer ( #3504 )
...
Extensible Azure Resource Explorer
2018-12-18 15:44:08 +08:00
Matt Irvine
cb72865dcc
Enable Azure Active Directory MFA authentication ( #3125 )
2018-11-27 11:13:47 -08:00