Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

https custom validation will still use ssl?

$
0
0
Hi.

I am creating a custom validation, meaning something like:
Code:

<basicHttpBinding>
        <binding name="defaultBasicHttpBinding">
          <security mode="TransportWithMessageCredential">
            <message clientCredentialType="UserName"/>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyServiceBehavior">
          <serviceMetadata httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <serviceCredentials>
            <userNameAuthentication
              userNamePasswordValidationMode="Custom"
              customUserNamePasswordValidatorType="VSAPIService.MyUserNamePasswordValidator, VSAPIService"/>

So on the server side i am expecting the user to pass creds and i am validating like:
Code:

Public Overrides Sub Validate(userName As String, password As String)
        ' Credential validation logic
        '' if error
        '' Throw New HttpRequestValidationException
        Return  ' Accept anything
    End Sub

My question is if this is still a valid SSL https way. Meaning that it has all the https benefits and the data is passed in a secured manner.

Also in the future i may create a restfull way so i can use Json and Ajax calls. Will this validation be available as an option?

Thanks.

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>