File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
articles/active-directory/develop Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,19 @@ The line containing `.AddAzureAd` adds the Microsoft identity platform authentic
152
152
> [ !NOTE]
153
153
> Setting ` ValidateIssuer = false ` is a simplification for this quickstart. In real applications you need to validate the issuer.
154
154
> 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
+ ```
155
168
156
169
### Protect a controller or a controller's method
157
170
You can’t perform that action at this time.
0 commit comments