You are creating a Windows application by using the .NET Framework 3.5.
Your company has an existing ASP.NET Web application that uses a Microsoft SQL Server 2008 data
source. The application authenticates users by using the SqlRoleProvider and SqlMembershipProvider
classes.
You plan to design a strategy to authenticate users to the Windows application by using the same SQL
Server 2008 data source.
You need to implement the strategy by using minimum possible code.
What should you do?
A.
Implement a custom Web service that replicates the authentication services. Authenticate the users to
the Web service.
B.
Collect the user login credentials, and authenticate the users directly against the database. Use the
login credentials to construct a principal used for authentication.
C.
Use the HttpWebRequest class to post form data to the login page of the Web application. Create a
principal by using the cookies that are returned. Use the principal for authentication.
D.
Enable client application services. Set an authentication service location and a membership service
location. Authenticate the users by calling the Membership.ValidateUser method.