Files
InventoryTracker/InventoryTraker.Web/App_Start/Startup.cs
T
2016-08-08 14:47:35 -04:00

21 lines
481 B
C#

using Microsoft.AspNet.Identity;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Owin;
namespace InventoryTraker.Web
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
var authenticationOptions = new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Authorization/Login"),
};
app.UseCookieAuthentication(authenticationOptions);
}
}
}