PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/ExpressInteropBinding/Microsoft.ServiceModel.Interop.Samples/CustomUsernameValidator.cs

#
C# | 24 lines | 10 code | 3 blank | 11 comment | 0 complexity | 77055236b514d5dbd4e6851b57dc80a5 MD5 | raw file
 1// <copyright file="InteropSecurityMode.cs" company="Microsoft Corporation">
 2// Copyright (c) Microsoft Corporation.  All rights reserved.
 3// </copyright>
 4
 5namespace Microsoft.ServiceModel.Interop.Samples
 6{
 7    using System.IdentityModel.Selectors;
 8
 9    /// <summary>
10    /// Custom WCF username validator implementation that authenticates all users
11    /// </summary>
12    public class CustomUserNameValidator : UserNamePasswordValidator
13    {
14        /// <summary>
15        /// Validates the provided username and password
16        /// </summary>
17        /// <param name="userName">Username to validate</param>
18        /// <param name="password">Password to validate</param>
19        public override void Validate(string userName, string password)
20        {
21        }
22    }
23}
24