Fix build break

This commit is contained in:
Kiran Challa 2015-05-26 15:42:51 -07:00
parent 116593f091
commit f2d9594799
2 changed files with 7 additions and 1 deletions

View File

@ -62,7 +62,7 @@ namespace MusicStore
services.ConfigureCookieAuthentication(options => services.ConfigureCookieAuthentication(options =>
{ {
options.AccessDeniedPath = new PathString("~/Home/AccessDenied"); options.AccessDeniedPath = new PathString("/Home/AccessDenied");
}); });
services.ConfigureFacebookAuthentication(options => services.ConfigureFacebookAuthentication(options =>

View File

@ -8,6 +8,7 @@ using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Diagnostics; using Microsoft.AspNet.Diagnostics;
using Microsoft.AspNet.Diagnostics.Entity; using Microsoft.AspNet.Diagnostics.Entity;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity; using Microsoft.Data.Entity;
using Microsoft.Framework.Caching.Memory; using Microsoft.Framework.Caching.Memory;
@ -74,6 +75,11 @@ namespace MusicStore
.AddEntityFrameworkStores<MusicStoreContext>() .AddEntityFrameworkStores<MusicStoreContext>()
.AddDefaultTokenProviders(); .AddDefaultTokenProviders();
services.ConfigureCookieAuthentication(options =>
{
options.AccessDeniedPath = new PathString("/Home/AccessDenied");
});
services.ConfigureFacebookAuthentication(options => services.ConfigureFacebookAuthentication(options =>
{ {
options.AppId = "[AppId]"; options.AppId = "[AppId]";