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;