Exercise 4: Configuring Forms Based Authentication

In this exercise, you configure Forms Based Authentication for the SharePoint web site.

Task 1 – Configuring Forms Based Authentication

In this task, you will configure Forms Based Authentication for a SharePoint site. Forms Based Authentication is the primary authentication mechanism used in many of the examples in this training kit. The Security With SharePoint And Windows Phone 7 Applications module discusses additional authentication methodologies, when they are appropriate to use, and how to setup and configure them.

  1. Log in to the development machine with farm administrator credentials.
  2. Create a new web application named FBAWP7 running on port 80.
  3. Configure the web application to use Claims Authenticationwith NTLM and Forms based Authentication.

    Figure 1

    Create New Web Application Dialog

  4. Enter SQL-MembershipProvider for the Membership Provider and SQL-RoleManager for the Role Provider.

    Figure 2

    Select Authentication Type

  5. Create a new site collection in the root of the web application and choose the Team Site template. Follow the steps in the following blog post to enable Forms Based Authentication for the https://fbawp7 SharePoint site. https://blogs.technet.com/b/mahesm/archive/2010/04/07/configure-forms-based-authentication-fba-with-sharepoint-2010.aspx

    Note:
    Note: You must change the name of the data source value in the connection string to point to the ASP.Net Role and Membership Provider database. Use the following code snippet below for reference. For example, if your machine name is SPWP7DEV then your connection string will look like this.

    XML

    <connectionStrings> <add name="SQLConnectionString" connectionString="data source=SPWP7DEV\SHAREPOINT;Integrated Security=SSPI;Initial Catalog=SQL-AUTH" /> </connectionStrings>