From b775e90b5be55310883016abe251449c0d175892 Mon Sep 17 00:00:00 2001 From: Suhas Joshi Date: Mon, 20 Apr 2015 17:29:46 -0700 Subject: [PATCH] Use configure from cookies repo --- .../IdentityServiceCollectionExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs index c310e0bbda..d589553dd9 100644 --- a/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Identity/IdentityServiceCollectionExtensions.cs @@ -25,7 +25,7 @@ namespace Microsoft.Framework.DependencyInjection public static IServiceCollection ConfigureIdentityApplicationCookie(this IServiceCollection services, Action configureOptions) { - return services.Configure(configureOptions, IdentityOptions.ApplicationCookieAuthenticationScheme); + return services.ConfigureCookieAuthentication(configureOptions, IdentityOptions.ApplicationCookieAuthenticationScheme); } public static IdentityBuilder AddIdentity( @@ -82,6 +82,7 @@ namespace Microsoft.Framework.DependencyInjection OnValidatePrincipal = SecurityStampValidator.ValidatePrincipalAsync }; }); + services.Configure(options => { options.AuthenticationScheme = IdentityOptions.ExternalCookieAuthenticationScheme;