web analytics

Using Forms Authentication over Windows Authentication in the Composable SDK

I recently came across a scenario where I needed¬†to do some maintenance on a client’s instance through our APIs. This particular Composable instance has Windows Authentication enabled, but also has a Forms Authenticated admin account on it. Since Windows Authentication is enabled in IIS, it requires that requests show up with Windows credentials. These windows credentials don’t actually have to have an account (think of when a user wants to register for an account the first time), but just some sort of windows credentials to avoid getting a 401 from IIS.

Composable will look at the auth cookie that is sent with the request to determine the issuing user. This allows you to either login with a Forms Authenticated Account or a Windows Authenticated Account on the same IIS Web Application.

The below code example shows setting up a Windows Authentication WCF channel, but using the FormLoginScope to login and then issue web service calls.

Leave a Reply

Your email address will not be published. Required fields are marked *