Commit c94a3dc
[Identity] Re-enable VisualStudioCodeCredential for SSO (Azure#51132)
* wip
* wip
* delete old tests
* get broker options
* working with manul test
* CUE when AuthRecord is present in IBC
* Use AuthenticationRecord.Deserialize for AuthRecord in VisualStudioCodeCredential
* Enable VS Code Credential in DAC chain by default
* Update XML comments
* Remove obsolete and EditorBrowsable attributes
* Suppressing API Compat issues
* Export API
* Remove obsolete warning supressions
* Check if the Broker is available when instanciating, and throw at GetToken if it's not available. Also, fixes the constructor with options.
* Simplify logic to read the authRecord file and add MacOS scenario with ".Azure"
* Addressed comments on PR
* Pass options when creating VisualStudioCodeCredential in DAC Factory
* Update DAC Factory tests to expect VSCodeCredential by default
* Fix DAC Tests by adding VSCodeCredential back to the expected chain on them and increase the expected number of creds by 1
* Add VisualStudioCodeCredentail() to dev chain
* Fix ValidateDefaultAzureCredentialAZURE_TOKEN_CREDENTIALS_Honored tests
* Fix InteractiveBrowserRefreshException tests
* Implement VisualStudioCodeCredential unit tests
* Changelog entry added
---------
Co-authored-by: Christopher Scott <[email protected]>
Co-authored-by: Christopher Scott <[email protected]>1 parent 8eba242 commit c94a3dc
File tree
20 files changed
+344
-395
lines changed- sdk/identity
- Azure.Identity.Broker/tests
- Azure.Identity
- api
- src
- Credentials
- tests
- Mock
20 files changed
+344
-395
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
| 118 | + | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
| |||
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
223 | | - | |
224 | | - | |
225 | 221 | | |
226 | 222 | | |
227 | 223 | | |
| |||
451 | 447 | | |
452 | 448 | | |
453 | 449 | | |
454 | | - | |
455 | | - | |
456 | | - | |
| 450 | + | |
457 | 451 | | |
458 | 452 | | |
459 | 453 | | |
460 | | - | |
461 | | - | |
| 454 | + | |
| 455 | + | |
462 | 456 | | |
463 | | - | |
464 | | - | |
465 | 457 | | |
466 | 458 | | |
467 | 459 | | |
| |||
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | 206 | | |
209 | 207 | | |
210 | 208 | | |
| |||
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
220 | | - | |
221 | | - | |
222 | 218 | | |
223 | 219 | | |
224 | 220 | | |
| |||
448 | 444 | | |
449 | 445 | | |
450 | 446 | | |
451 | | - | |
452 | | - | |
453 | | - | |
| 447 | + | |
454 | 448 | | |
455 | 449 | | |
456 | 450 | | |
457 | | - | |
458 | | - | |
| 451 | + | |
| 452 | + | |
459 | 453 | | |
460 | | - | |
461 | | - | |
462 | 454 | | |
463 | 455 | | |
464 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
282 | | - | |
| 280 | + | |
283 | 281 | | |
284 | | - | |
285 | | - | |
286 | | - | |
| 282 | + | |
287 | 283 | | |
288 | 284 | | |
289 | 285 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments