Skip to content

Commit 2e0815d

Browse files
authored
Merge pull request #112507 from jmprieur/updateMicrosoftIdentityWeb
Fixes https://github.com/MicrosoftDocs/azure-docs/issues/48567
2 parents 573e1a4 + fb4fdce commit 2e0815d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

articles/active-directory/develop/quickstart-v2-aspnet-core-webapp.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,19 @@ The line containing `.AddAzureAd` adds the Microsoft identity platform authentic
152152
> [!NOTE]
153153
> Setting `ValidateIssuer = false` is a simplification for this quickstart. In real applications you need to validate the issuer.
154154
> See the samples to understand how to do that.
155+
>
156+
> Also note the `Configure` method which contains two important methods: `app.UserCookiePolicy()` and `app.UseAuthentication()`
157+
158+
```csharp
159+
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
160+
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
161+
{
162+
// more core
163+
app.UseCookiePolicy();
164+
app.UseAuthentication();
165+
// more core
166+
}
167+
```
155168

156169
### Protect a controller or a controller's method
157170

0 commit comments

Comments
 (0)