Custom membership provider: Example of using the custom membership provider

Login to the backend of Sitefinity CMS using the Default authentication provider. Open the Users page by clicking Administration » Users. Above the toolbar of the page, you can see all available providers, including the one you created - Customer Support.

When you click Customer Support, an empty list is shown, since you have not yet created any users.

You already implemented the logic in the provider to create and delete users from Sitefinity CMS backend, so when you click Create a user button, you create an actual customer record inside our database.

When you fill out the fields, Sitefinity CMS creates the link between the Sitefinity CMS user and the profile information. Inside this profile information, Sitefinity CMS stores data such as Firstname and Lastname.

You can then choose which provider you want to use for the user and you can decide whether you want to make this user a backend user or if the user is a public user.

As an example, use the following values for this new user:

Username Sfcustomer
Password Membership2013
Confirm password Membership2013
Email user@customers.com
Firstname Custom
Lastname Member
Is a public profile True
This user can access site backend True
Provider CustomMembershipProvider
Roles Authors

When you are done, click Create this user and you return to the users grid, which now shows the new user.

Because you have enabled Access site backend, you can test this by performing the following:

  1. Log out of Sitefinity.
  2. Navigate to the login page again.
  3. In Authentication Provider, choose CustomMembershipProvider.
  4. To login, use the credentials for the new user.

You have successfully logged in to Sitefinity CMS using the custom membership provider.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?