diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs index 69968bd1c0..458722e4d5 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Startup.cs @@ -64,10 +64,8 @@ namespace Company.WebApplication1 options.UseSqlite( Configuration.GetConnectionString("DefaultConnection"))); #endif - services.AddIdentity(options => options.Stores.MaxLengthForKeys = 128) - .AddEntityFrameworkStores() - .AddDefaultUI() - .AddDefaultTokenProviders(); + services.AddDefaultIdentity() + .AddEntityFrameworkStores(); #elif (OrganizationalAuth || IndividualB2CAuth) services.AddAuthentication(sharedOptions => diff --git a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs index bae9d822f6..0b9cb321a9 100644 --- a/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs +++ b/src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Startup.cs @@ -52,10 +52,8 @@ namespace Company.WebApplication1 Configuration.GetConnectionString("DefaultConnection"))); #endif - services.AddIdentity(options => options.Stores.MaxLengthForKeys = 128) - .AddEntityFrameworkStores() - .AddDefaultUI() - .AddDefaultTokenProviders(); + services.AddDefaultIdentity() + .AddEntityFrameworkStores(); #elif (OrganizationalAuth || IndividualB2CAuth) services.AddAuthentication(sharedOptions =>