Multiple Client Types

103 Views Asked by At

I have a web application that I would like to use authenticate using MembershipReboot for a subset of users but internally I would also like to use Active Directory.

What's the best practice of authenticating a single web application with two different authentication models? Any code samples would be great.

1

There are 1 best solutions below

1
On

For this scenario you'll need a UserService for Membership Reboot. This will mean when users log in to Identity Server using the local username & password fields they will use Membership Reebot. You can find this UserService here.

To also use Active Directory you need to configure it as an external identity provider. This will then provide users with the option to log in using their AD credentials.

If you want to specify in your requests which provider to log the user into, check out the acr_values parameter of the Authorization endpoint or the IdentityProviderRestrictions property of the Client class.