|
|
|
@ -2,6 +2,7 @@ using Microsoft.AspNet.Authentication; |
|
|
|
using Microsoft.AspNet.Authentication.Cookies; |
|
|
|
using Microsoft.AspNet.Builder; |
|
|
|
using Microsoft.AspNet.Http; |
|
|
|
using Microsoft.AspNet.HttpOverrides; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.IdentityModel.Protocols.OpenIdConnect; |
|
|
|
@ -26,6 +27,10 @@ namespace Mvc.Client { |
|
|
|
options.FlowWindowsAuthentication = false; |
|
|
|
}); |
|
|
|
|
|
|
|
app.UseOverrideHeaders(new OverrideHeaderMiddlewareOptions { |
|
|
|
ForwardedOptions = ForwardedHeaders.All |
|
|
|
}); |
|
|
|
|
|
|
|
app.UseStaticFiles(); |
|
|
|
|
|
|
|
// Insert a new cookies middleware in the pipeline to store the user
|
|
|
|
|