Add the new provider to the Sitefinity CMS providers collection
To add the provider to the Sitefinity CMS provider’s collection, you can use the Sitefinity CMS backend. Another way is to manually add the provider to the SecurityConfig.config file, in the ~/App_Data/Sitefinity/Configuration folder.
Perform the following:
- In Sitefinity CMS backend, click Administration » Settings » Advanced.
- To add a new membership provider, in the left pane, click Security » Membership Providers » Create new.
- Fill out the following details for the new Membership Provider:
|Name ||CustomMembershipProvider |
|Title ||Customer Support |
|ProviderType ||SitefinityWebApp.Providers.CustomMembershipProvider, SitefinityWebApp |
|Enabled ||True |
- Click Save.
- Under parameters, add the following parameters and their values:
| applicationName || CustomMembership/ |
| enablePasswordReset || True |
| maxInvalidPasswordAttempts || 5 |
| minRequiredNonalphanumericCharacters || 0 |
| minRequiredPasswordLength || 7 |
| newPasswordLength || 8 |
| passwordAttemptWindow || 10
| passwordFormat || Encrypted |
| requiresQuestionAndAnswer || False |
| requiresUniqueEmail || True |
| enablePasswordRetrieval || True |
Restart the application.
After the application restart, you can see that the new provider is active by navigating to the /Sitefinity login page. On Sitefinity CMS login page, in the Authentication Provider dropdown box, you can see the new provider.