UserNamePasswordServiceCredential.CustomUserNamePasswordValidator Property


Gets or sets a custom user name and password validator.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public UserNamePasswordValidator CustomUserNamePasswordValidator { get; set; }

Property Value

Type: System.IdentityModel.Selectors.UserNamePasswordValidator

A custom user name and password validator.

The UserNamePasswordValidationMode property must be set to MembershipProvider for the MembershipProvider to take effect. When the MembershipProvider property is set and the UserNamePasswordValidationMode property is not, WCF uses Windows authentication and ignores the value of the MembershipProvider property.

For Custom mode, the service uses UserNamePasswordValidator for user name/password authentication by calling the Validate method.

.NET Framework
Available since 3.0
Return to top