Defining MembershipSettings in Metadata
The CommerceMembershipSettings entity defines the properties supported by the Commerce Membership Provider in Microsoft Commerce Server 2009 R2.
The following configuration shows how the MembershipSettings entity is defined in metadata.
For more information about ASP.NET membership, see Managing Users by Using Membership https://go.microsoft.com/fwlink/?LinkId=209149.
<CommerceEntity name="MembershipSettings">
<DisplayName value="Membership Settings"/>
<Authorization>
<Operation name="Query" >
<Claimset name="Everyone"/>
</Operation>
</Authorization>
<Properties>
<Property name="Id"dataType="String" />
<Property name="logonNameProperty" dataType="String"/>
<Property name="membershipUserModelName" dataType="String"/>
<Property name="requiresApproval" dataType="Boolean"/>
<Property name="requiresQuestionAndAnswer" dataType="Boolean"/>
<Property name="enablePasswordReset" dataType="Boolean"/>
<Property name="minRequiredPasswordLength" dataType="Integer"/>
<Property name="minRequiredNonAlphanumericCharacters" dataType="Integer"/>
<Property name="passwordLockoutPeriod" dataType="Integer"/>
<Property name="maxInvalidPasswordAttempts" dataType="Integer"/>
<Property name="enableAccountLockout" dataType="Boolean"/>
<Property name="enableLastLoginDate" dataType="Boolean"/>
<Property name="enableLastActivityDate" dataType="Boolean"/>
<Property name="enableAccountStatus" dataType="Boolean"/>
</Properties>
</CommerceEntity>
<!-- MembershipSettings End -->
The CommerceMembershipSettings entity has the following properties:
Property Name |
Description |
Data Type |
---|---|---|
Id |
Specifies the channel name |
String |
logonNameProperty |
Specifies the property used as the user login |
String |
membershipUserModelName |
Specifies the name of the commerce entity used to represent membership users (shoppers) as defined in MetadataDefinitions.xml |
String |
requiresApproval |
Specifies whether a new user account requires approval before the user can log on to the site |
Boolean |
requiresQuestionAndAnswer |
Specifies whether a new user must provide a question and answer when registering for the first time in the event he/she needs to retrieve or reset a forgotten password |
Boolean |
enablePasswordReset |
Specifies whether the password reset feature is supported |
Boolean |
minRequiredPasswordLength |
Specifies the minimum number of characters that must be present in a computer generated password.
Note:
Only for use when enablePasswordReset is set to true.
|
Integer |
minRequiredNonAlphanumericCharacters |
Specifies the minimum number of special characters that must be present in a computer generated password for a reset password.
Note:
Only for use when enablePasswordReset is set to true.
|
Integer |
passwordLockoutPeriod |
Specifies the number of minutes a user is locked out of his/her account after exceeding the maximum number of invalid log in attempts |
Integer |
maxInvalidPasswordAttempts |
Specifies the number of invalid attempts that must occur within the period specified in the PasswordAttemptWindow property to trigger an account lockout |
Integer |
enableAccountLockout |
Specifies whether the Commerce Membership Provider locks out users who fail to login to the site after exceeding the maximum number of invalid attempts within a specified period |
Boolean |
enableLastLoginDate |
Specifies whether the Commerce Membership Provider updates the last login in date when the user logs in |
Boolean |
enableLastActivityDate |
Specifies whether the Commerce Membership Provider updates the last activity date of a profile when the user logs in or accesses the site |
Boolean |
enableAccountStatus |
Specifies whether the Commerce Membership Provider monitors the active or inactive status of a user account |
Boolean |
For more information about ASP.NET membership, see Managing Users by Using Membership https://go.microsoft.com/fwlink/?LinkId=209149.
See Also
Other Resources
Using the Commerce Membership Provider