Hi.
I am creating a custom validation, meaning something like:
So on the server side i am expecting the user to pass creds and i am validating like:
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.
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"/>
Code:
Public Overrides Sub Validate(userName As String, password As String)
' Credential validation logic
'' if error
'' Throw New HttpRequestValidationException
Return ' Accept anything
End Sub
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.