vscode/extensions/microsoft-authentication
Tyler James Leonhardt d5c2817e69
Use email for label & use label to group results in Account menu (#193727)
So, when you make a new session in the Microsoft Identity stack, depending on the scopes you pass in you might get:
* A token with a name & email
* A token with just a name
Additionally, Microsoft has like 3-4 concepts of essentially an "id" but depending on what you're trying to access, you might get a different value.

This historical behavior leads to 2 awkward things:
1. The account menu shows two accounts, one with name & email, one with just email.
2. The account menu shows two of the same accounts, but their underlying id is different

So, to fix this, we're just gonna lean on the labels. In other words, if there are two accounts that share the same label, then they will be grouped together.

The previous behavior was hurting the Azure Account folks and the Q# folks and with this change, I believe they both should be happy.

Interestingly enough, when I inherited this code, it use to do this, but I changed it to use the id as that seemed "more correct"... so it a way, this is reverting a change I did a while back.

Fixes https://github.com/microsoft/vscode/issues/184218
2023-09-21 14:09:25 -07:00
..
media more accurate naming of pages 2022-04-27 15:40:41 -07:00
src Use email for label & use label to group results in Account menu (#193727) 2023-09-21 14:09:25 -07:00
.vscodeignore Do not ship unnecessary files with extensions 2020-07-24 13:57:51 +02:00
extension-browser.webpack.config.js Remove CredentialsService & keytar (#192224) 2023-09-05 17:47:30 -07:00
extension.webpack.config.js Remove CredentialsService & keytar (#192224) 2023-09-05 17:47:30 -07:00
package.json Fix slow telemetry module (#193607) 2023-09-20 20:14:12 +01:00
package.nls.json Polish Sovereign Cloud support (#184634) 2023-06-08 12:39:29 -07:00
README.md Support sovereign/custom clouds in microsoft authentication provider (#178725) 2023-04-07 16:38:38 -07:00
tsconfig.json #159892 Finalize (#165925) 2022-11-09 10:28:27 -05:00
yarn.lock Fix slow telemetry module (#193607) 2023-09-20 20:14:12 +01:00

Microsoft Authentication for Visual Studio Code

Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.

Features

This extension provides support for authenticating to Microsoft. It registers the microsoft Authentication Provider that can be leveraged by other extensions. This also provides the Microsoft authentication used by Settings Sync.

Additionally, it provides the microsoft-sovereign-cloud Authentication Provider that can be used to sign in to other Azure clouds like Azure for US Government or Azure China. Use the setting microsoft-sovereign-cloud.endpoint to select the authentication endpoint the provider should use. Please note that different scopes may also be required in different environments.