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: articles/active-directory/develop/scenario-web-app-sign-user-app-configuration.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ You might want to refer to this sample for full implementation details.
63
63
64
64
## Configuration files
65
65
66
-
Web applications that sign in users by using the Microsoft identity platform are configured through configuration files. These are the values you're required to specify in the configuration:
66
+
Web applications that sign in users by using the Microsoft identity platform are configured through configuration files. Those files must specify the following values:
67
67
68
68
- The cloud **instance** if you want your app to run in national clouds, for example. The different options include;
69
69
-`https://login.microsoftonline.com/` for Azure public cloud
@@ -199,7 +199,7 @@ CLIENT_SECRET=<client secret>
199
199
TENANT_ID=<tenant id>
200
200
```
201
201
202
-
Those environment variables are referenced by*app_config.py*:
202
+
Those environment variables are referenced in*app_config.py*:
@@ -219,7 +219,7 @@ The initialization code differences are platform dependant. For ASP.NET Core and
219
219
In ASP.NET Core web apps (and web APIs), the application is protected because you have a `Authorize` attribute on the controllers or the controller actions. This attribute checks that the user is authenticated. Prior to the release of .NET 6, the code initialization was in the *Startup.cs* file. New ASP.NET Core projects with .NET 6 no longer contain a *Startup.cs* file. Taking its place is the *Program.cs* file. The rest of this tutorial pertains to .NET 5 or lower.
220
220
221
221
> [!NOTE]
222
-
> If you want to start directly with the new ASP.NET Core templates for Microsoft identity platform, that leverage Microsoft.Identity.Web, you can download a preview NuGet package containing project templates for .NET 5.0. Then, once installed, you can directly instantiate ASP.NET Core web applications (MVC or Blazor). See [Microsoft.Identity.Web web app project templates](https://aka.ms/ms-id-web/webapp-project-templates) for details. This is the simplest approach as it will do all the steps below for you.
222
+
> If you want to start directly with the new ASP.NET Core templates for Microsoft identity platform, that leverage Microsoft.Identity.Web, you can download a preview NuGet package containing project templates for .NET 5.0. Then, once installed, you can directly instantiate ASP.NET Core web applications (MVC or Blazor). See [Microsoft.Identity.Web web app project templates](https://aka.ms/ms-id-web/webapp-project-templates) for details. This is the simplest approach as it will do all the following steps for you.
223
223
>
224
224
> If you prefer to start your project with the current default ASP.NET Core web project within Visual Studio or by using `dotnet new mvc --auth SingleOrg` or `dotnet new webapp --auth SingleOrg`, you'll see code like the following:
225
225
>
@@ -230,7 +230,7 @@ In ASP.NET Core web apps (and web APIs), the application is protected because yo
1. Addthe [Microsoft.Identity.Web](https://www.nuget.org/packages/Microsoft.Identity.Web) and [Microsoft.Identity.Web.UI](https://www.nuget.org/packages/Microsoft.Identity.Web.UI) NuGet packages to your project. Remove the `Microsoft.AspNetCore.Authentication.AzureAD.UI` NuGet package if it is present.
233
+
1. Addthe [Microsoft.Identity.Web](https://www.nuget.org/packages/Microsoft.Identity.Web) and [Microsoft.Identity.Web.UI](https://www.nuget.org/packages/Microsoft.Identity.Web.UI) NuGet packages to your project. Remove the `Microsoft.AspNetCore.Authentication.AzureAD.UI` NuGet package if it's present.
234
234
235
235
2. Updatethecodein `ConfigureServices` sothatitusesthe `AddMicrosoftIdentityWebAppAuthentication` and `AddMicrosoftIdentityUI` methods.
236
236
@@ -268,7 +268,7 @@ In ASP.NET Core web apps (and web APIs), the application is protected because yo
0 commit comments