I've found myself before a task I don't even know where to start. So basically I have a working IS4 auth server which has been serving my App and API for some time, and it works great. Our solution supports regular user registration/login and also Google and Facebook logins.
Now we're presented with a challenge from one of our clients to enable their employees to log into our app with their existing AD user accounts. Naturally I don't want to do this just for them, but would like to make it an option for all other enterprise users that have existing ADs. I've been reading about federated gateways and windows login, but will definitely need read more about it.
The major unknown for me is how to allow anyone to connect their AD with my app and then execute login process. Ideally, I would like to do this by having a DB table where I would store all third party AD providers and somehow load them on app start, but if I'll have to manually add code block to my Startup class for each of them, I'll live with it.
Second unknown is the login process itself; do I need to have a separate login page for those companies that use AD, or use the existing one but check if I have a provider registered for that email domain user is logging in with, whenever anybody tries to log in?