// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Security.Cookies;
namespace Microsoft.AspNet.Builder
{
///
/// Extension methods provided by the cookies authentication middleware
///
public static class CookieAuthenticationExtensions
{
///
/// Adds a cookie-based authentication middleware to your web application pipeline.
///
/// The IApplicationBuilder passed to your configuration method
/// An options class that controls the middleware behavior
/// The original app parameter
public static IApplicationBuilder UseCookieAuthentication([NotNull] this IApplicationBuilder app, [NotNull] CookieAuthenticationOptions options)
{
return app.UseMiddleware(options);
}
}
}