I am trying to create a custom user service to authenticate a user against multiple user stores. As per my understanding I have to create a new service implementing interface IUserService.
In my login page users will enter username , password and they will select a organization name which is displayed as a dropdown. This organization name will decide which user store to use. Now, should I write different UserServices for each organization or is there way that I can do with one something like passing an extra parameter to AuthenticateLocalAsync(string username, string password, SignInMessage message)?
If I develop three services how to register them to work based on the organization selected?