Default IdentityUI to Bootstrap4 (#9334)
This commit is contained in:
parent
6a7b94a2bd
commit
dac6756853
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
|
|
@ -30,7 +30,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
/// </remarks>
|
||||
/// <param name="builder">The <see cref="IdentityBuilder"/>.</param>
|
||||
/// <returns>The <see cref="IdentityBuilder"/>.</returns>
|
||||
public static IdentityBuilder AddDefaultUI(this IdentityBuilder builder) => builder.AddDefaultUI(UIFramework.Bootstrap3);
|
||||
public static IdentityBuilder AddDefaultUI(this IdentityBuilder builder) => builder.AddDefaultUI(UIFramework.Bootstrap4);
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ namespace Company.WebApplication1
|
|||
Configuration.GetConnectionString("DefaultConnection")));
|
||||
#endif
|
||||
services.AddDefaultIdentity<IdentityUser>()
|
||||
.AddDefaultUI(UIFramework.Bootstrap4)
|
||||
.AddEntityFrameworkStores<ApplicationDbContext>();
|
||||
#elif (OrganizationalAuth)
|
||||
services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ namespace Company.WebApplication1
|
|||
Configuration.GetConnectionString("DefaultConnection")));
|
||||
#endif
|
||||
services.AddDefaultIdentity<IdentityUser>()
|
||||
.AddDefaultUI(UIFramework.Bootstrap4)
|
||||
.AddEntityFrameworkStores<ApplicationDbContext>();
|
||||
#elif (OrganizationalAuth)
|
||||
services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ namespace Company.WebApplication1
|
|||
#endif
|
||||
|
||||
services.AddDefaultIdentity<ApplicationUser>()
|
||||
.AddDefaultUI(UIFramework.Bootstrap4)
|
||||
.AddEntityFrameworkStores<ApplicationDbContext>();
|
||||
|
||||
services.AddIdentityServer()
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ namespace Company.WebApplication1
|
|||
#endif
|
||||
|
||||
services.AddDefaultIdentity<ApplicationUser>()
|
||||
.AddDefaultUI(UIFramework.Bootstrap4)
|
||||
.AddEntityFrameworkStores<ApplicationDbContext>();
|
||||
|
||||
services.AddIdentityServer()
|
||||
|
|
|
|||
Loading…
Reference in New Issue