Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

IdentityBuilder does not contain AddSignInManager however it do contain AddUserManager  #565

@ianido

Description

@ianido

If you want to implement your own SignInManager and UserManager you have to activate them like:

services.AddScoped(typeof(MyUserManager<IUser>));
services.AddScoped(typeof(MySignInManager<IUser>));

services.AddIdentity<ApplicationUser, ApplicationRole>()

so what is the purpose of: AddUserManager

services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddUserManager<MyUserManager<IUser>>() 

it does not work.

would be better if we can declare them like:

services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddSignInManager<MySignInManager<IUser>>() 
.AddUserManager<MyUserManager<IUser>>()

or simply remove the AddUserManager method.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions