@@ -34,7 +34,8 @@ public static IdentityBuilder AddIdentityConfiguration(this IServiceCollection s
3434 {
3535 if ( services == null ) throw new ArgumentException ( nameof ( services ) ) ;
3636 services . UseNetDevPackIdentity ( ) ;
37- return services . AddDefaultIdentity < IdentityUser > ( )
37+
38+ return services . AddIdentityCore < IdentityUser > ( )
3839 . AddRoles < IdentityRole > ( )
3940 . AddEntityFrameworkStores < NetDevPackAppDbContext > ( )
4041 . AddDefaultTokenProviders ( ) ;
@@ -44,15 +45,17 @@ public static IdentityBuilder AddDefaultIdentity(this IServiceCollection service
4445 {
4546 if ( services == null ) throw new ArgumentException ( nameof ( services ) ) ;
4647 services . UseNetDevPackIdentity < IdentityUser > ( ) ;
47- return services . AddDefaultIdentity < IdentityUser > ( options ) ;
48+ return services . AddIdentityCore < IdentityUser > ( options )
49+ . AddDefaultTokenProviders ( ) ;
4850 }
4951
5052 public static IdentityBuilder AddCustomIdentity < TIdentityUser > ( this IServiceCollection services , Action < IdentityOptions > options = null )
5153 where TIdentityUser : IdentityUser
5254 {
5355 if ( services == null ) throw new ArgumentException ( nameof ( services ) ) ;
5456
55- return services . AddDefaultIdentity < TIdentityUser > ( options ) ;
57+ return services . AddIdentityCore < TIdentityUser > ( options )
58+ . AddDefaultTokenProviders ( ) ;
5659 }
5760
5861 public static IdentityBuilder AddCustomIdentity < TIdentityUser , TKey > ( this IServiceCollection services , Action < IdentityOptions > options = null )
@@ -61,7 +64,8 @@ public static IdentityBuilder AddCustomIdentity<TIdentityUser, TKey>(this IServi
6164 {
6265 if ( services == null ) throw new ArgumentException ( nameof ( services ) ) ;
6366 services . UseNetDevPackIdentity < TIdentityUser , TKey > ( ) ;
64- return services . AddDefaultIdentity < TIdentityUser > ( options ) ;
67+ return services . AddIdentityCore < TIdentityUser > ( options )
68+ . AddDefaultTokenProviders ( ) ;
6569 }
6670
6771 public static IdentityBuilder AddDefaultRoles ( this IdentityBuilder builder )
0 commit comments