You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/work-with-multi-factor-authentication.md
+23-19Lines changed: 23 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
title: Multi-factor authentication with Visual Studio sign-ins
3
3
titleSuffix: ""
4
-
ms.date: 05/27/2020
5
-
ms.custom: SEO-VS-2020
4
+
ms.date: 01/24/2020
5
+
ms.custom: SEO-VS-2022
6
6
ms.topic: how-to
7
-
description: "Learn how to use Visual Studio with accounts that require multi-factor authentication."
7
+
description: "Learn how to use Visual Studio with accounts that require multi-factor authentication (MFA)."
8
8
author: anandmeg
9
9
ms.author: meghaanand
10
10
manager: jmartens
@@ -14,7 +14,11 @@ ms.workload:
14
14
monikerRange: ">=vs-2019"
15
15
---
16
16
17
-
# Use Visual Studio with accounts that require multi-factor authentication (MFA)
17
+
# Work with accounts that require multi-factor authentication (MFA)
18
+
19
+
In this article, you'll learn how to use Visual Studio with accounts that require multi-factor authentication (MFA).
20
+
21
+
## Why enable MFA policies?
18
22
19
23
When collaborating with external guest users, it's a good idea to protect your apps and data with **conditional access (CA)** policies such as **multi-factor authentication (MFA)**.
20
24
@@ -23,7 +27,7 @@ Once enabled, guest users will need more than just a username and password to ac
23
27
## How is the Visual Studio experience affected by MFA policies?
24
28
Versions of Visual Studio prior to 16.6 may have degraded authentication experiences when used with accounts that have enabled CA policies such as MFA, and are associated with two or more tenants.
25
29
26
-
These issues can cause your instance of Visual Studio to prompt reauthentication multiple times per day. You may have to reenter your credentials for previously authenticated tenants, even during the course of the same Visual Studio session.
30
+
These issues can cause your instance of Visual Studio to prompt reauthentication multiple times per day. You may have to re-enter your credentials for previously authenticated tenants, even during the course of the same Visual Studio session.
27
31
28
32
## Using Visual Studio with MFA policies
29
33
In the 16.6 release, we added new capabilities to Visual Studio 2019 that streamline how users can access resources secured via CA policies such as MFA. To use this enhanced workflow, you'll need to opt into using your system's default web browser as the mechanism to add and reauthenticate Visual Studio accounts.
@@ -38,52 +42,52 @@ In the 16.6 release, we added new capabilities to Visual Studio 2019 that stream
38
42
39
43
To enable this workflow, go to Visual Studio's Options dialog **(Tools > Options…)**, select the **Accounts** tab and pick **System web browser** under the **Add and reauthenticate accounts using:** dropdown.
40
44
41
-
:::image type="content" source="media/select-system-web-browser.png" alt-text="Select system web browser from the menu.":::
45
+
:::image type="content" source="media/vs-2022/select-system-web-browser.png" alt-text="Select system web browser from the menu.":::
42
46
43
47
### Sign into additional accounts with MFA policies
44
48
Once the system web browser workflow is enabled, you can sign in or add accounts to Visual Studio as you normally would, via the Account Settings dialog **(File > Account Settings…)**.
45
49
</br>
46
-
:::image type="content" source="media/add-personalization-account.png" alt-text="Add a new personalization account to Visual Studio." border="false":::
50
+
:::image type="content" source="media/vs-2022/add-personalization-account.png" alt-text="Add a new personalization account to Visual Studio." border="false":::
47
51
48
52
This action will open your system's default web browser, ask you to sign into your account, and validate any required MFA policy.
49
53
50
-
During the signin process, you may receive an additional prompt asking you to stay signed in. This prompt will likely show up the second time an account is used to sign in. To minimize the need to re-enter your credentials, we recommend that you select **Yes**, as this ensures your credentials are preserved across browser sessions.
54
+
During the sign-in process, you may receive an additional prompt asking you to stay signed in. This prompt will likely show up the second time an account is used to sign in. To minimize the need to re-enter your credentials, we recommend that you select **Yes**, as this ensures your credentials are preserved across browser sessions.
51
55
52
-
:::image type="content" source="media/kmsi.png" alt-text="Stay signed in?":::
56
+
:::image type="content" source="media/vs-2022/keep-me-signed-in.png" alt-text="Stay signed in?":::
53
57
54
-
Based on your development activities and resource configuration, you may still be prompted to reenter your credentials during your session. This can occur when you add a new resource, or try accessing a resource without having previously met its CA/MFA authorization requirements.
58
+
Based on your development activities and resource configuration, you may still be prompted to re-enter your credentials during your session. This can occur when you add a new resource, or try accessing a resource without having previously met its CA/MFA authorization requirements.
55
59
56
-
## Reauthenticating an account
57
-
If there's a problem with your account, Visual Studio might ask you to reenter your account credentials.
60
+
## Reauthenticating an account
61
+
If there's a problem with your account, Visual Studio might ask you to re-enter your account credentials.
58
62
59
-
:::image type="content" source="media/reauthenticate-account.png" alt-text="Reauthenticate your Visual Studio account.":::
63
+
:::image type="content" source="media/vs-2022/reauthenticate-account.png" alt-text="Reauthenticate your Visual Studio account.":::
60
64
61
-
Clicking on **Reenter your credentials** will open your system's default web browser and attempt to automatically refresh your credentials. If unsuccessful, you'll be asked to sign into your account and validate any required CA/MFA policy.
65
+
Clicking on **Re-enter your credentials** will open your system's default web browser and attempt to automatically refresh your credentials. If unsuccessful, you'll be asked to sign into your account and validate any required CA/MFA policy.
62
66
63
67
> [!NOTE]
64
68
> For the best experience, keep your browser open until all CA/MFA policies are validated for your resources. Closing the browser may result in losing the previously built MFA state, and may prompt additional authorization prompts.
65
69
66
70
## How to opt out of using a specific Azure Active Directory tenant in Visual Studio
67
71
68
-
Visual Studio 2019 version 16.6 offers the flexibility to filter out tenants individually or globally, effectively hiding them from Visual Studio. Filtering eliminates the need to authenticate with that tenant, but it also means that you won't be able to access any associated resources.
72
+
Visual Studio 2019 version 16.6 and above offers the flexibility to filter out tenants individually or globally, effectively hiding them from Visual Studio. Filtering eliminates the need to authenticate with that tenant, but it also means that you won't be able to access any associated resources.
69
73
70
74
This functionality is useful when you have multiple tenants, but want to optimize your development environment by targeting a specific subset. It can also help in instances when you can't validate a particular CA/MFA policy, as you can filter out the offending tenant.
71
75
72
76
### How to filter out all tenants
73
-
To globally filter out all tenants, open the Account Settings dialog **(File > Account Settings…)** and deselect the **Authenticate Across all Azure Active Directories** checkbox.
77
+
To globally filter out all tenants, open the Account Settings dialog **(File > Account Settings... > Account options)** and deselect the **Authenticate across all Azure Active Directories** checkbox.
74
78
75
79
Deselecting that option ensures you’ll only authenticate with the account’s default tenant. It also means that you won't be able to access any resources associated with other tenants your account might be a guest on.
76
80
77
81
### How to filter out individual tenants
78
-
To filter tenants that are associated with your Visual Studio account, open the Account Settings dialog **(File > Account Settings…)** and click on **Apply filter**.
82
+
To filter tenants that are associated with your Visual Studio account, open the Account Settings dialog **(File > Account Settings…)** and click on **Apply filter**.
Copy file name to clipboardExpand all lines: docs/javascript/tutorial-asp-net-core-with-react.md
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Make sure to have the following installed:
34
34
35
35
- Visual Studio 2022 Preview 2 or later with the **ASP.NET and web development** workload installed. Go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/) page to install it for free.
36
36
If you need to install the workload and already have Visual Studio, go to **Tools** > **Get Tools and Features...**, which opens the Visual Studio Installer. Choose the **ASP.NET and web development** workload, then choose **Modify**.
1. Next, right-click the React project and select the **Properties** menu and go the **Debugging** section. Change the Debugger to launch to the **launch.json** option.
89
-
93
+
90
94
:::image type="content" source="media/vs-2022/asp-net-core-with-react-choose-debugger.png" alt-text="Choose the debugger (launch.json)":::
0 commit comments