Up Security code samples
DevForce 2010 Resource Center » Code samples » Security code samples » Code sample: Windows Authentication (non-ASP.NET)

Code sample: Windows Authentication (non-ASP.NET)

Last modified on June 11, 2011 22:27

This sample shows how to use Windows Authentication in an n-tier application when the EntityServer is not using ASP.NET security.


Problem

Using Windows Authentication in an n-tier application requires that the user's credentials be passed from the client to the EntityServer.  When not using ASP.NET security services this requires some additional configuration. 

Solution

Passing Windows credentials from a client application to the EntityServer is done by customizing the default DevForce configuration on both client and server to allow credentials to be passed over the WCF channel.

The customization can be done either programmatically or with configuration files.  This sample is customizing the WCF bindings defined in the <system.serviceModel> configuration section.

You also need a custom IEntityLoginManager which will expect to process Windows credentials, as shown in the sample.

Created by DevForce on May 06, 2011 14:05

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2015 IdeaBlade