WCF security mode is TransportWithMessageCredential using UserName, where to check?

Here is part of my web.config for my WCF service:

<bindings>
      <basicHttpBinding>
        <binding name="sslBinding">
          <security mode="TransportWithMessageCredential">
            <message clientCredentialType="UserName" algorithmSuite="Default" />
            <transport />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>

Where exactly do I check the username when a client tries to use my service? Is there any method I have to override to validate the username?

+3
source share
1 answer
<behaviors>
        <serviceBehaviors>
          <behavior name="behavior">
            <serviceCredentials>
              <userNameAuthentication customUserNamePasswordValidatorType="myType, assembly" userNamePasswordValidationMode="Custom"/>
            </serviceCredentials>
          </behavior>
        </serviceBehaviors>
+6
source

All Articles