diff --git a/src/MusicStore/Startup.cs b/src/MusicStore/Startup.cs index 2db0bef0fe..c830984145 100644 --- a/src/MusicStore/Startup.cs +++ b/src/MusicStore/Startup.cs @@ -62,7 +62,7 @@ namespace MusicStore services.ConfigureCookieAuthentication(options => { - options.AccessDeniedPath = new PathString("~/Home/AccessDenied"); + options.AccessDeniedPath = new PathString("/Home/AccessDenied"); }); services.ConfigureFacebookAuthentication(options => diff --git a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs index 96a451ded8..3cf3d3b64b 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs @@ -8,6 +8,7 @@ using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Diagnostics; using Microsoft.AspNet.Diagnostics.Entity; +using Microsoft.AspNet.Http; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Data.Entity; using Microsoft.Framework.Caching.Memory; @@ -74,6 +75,11 @@ namespace MusicStore .AddEntityFrameworkStores() .AddDefaultTokenProviders(); + services.ConfigureCookieAuthentication(options => + { + options.AccessDeniedPath = new PathString("/Home/AccessDenied"); + }); + services.ConfigureFacebookAuthentication(options => { options.AppId = "[AppId]";