-
September 29th, 2012, 11:17 AM
#1
x509 certificate for WCF with username password authentication
I used the guide lines on the link attached to create my WCF service that uses a custom username password validation. This site talks about creating a certificate using self cert utility which is used in the following section of configuration. Can someone help me understand why the certificate is needed. I don't see any mention of this in the code code username password validator class.
Guidelines link: http://www.codeproject.com/Articles/...sword-authenti
Code:
<behaviors>
<serviceBehaviors>
<behavior name="Behavior1">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceCredentials>
<serviceCertificate findValue="MyWebSite"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName" />
<userNameAuthentication userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="CustomUsernamePasswordAuth.
Service.UserNamePassValidator, CustomUsernamePasswordAuth.Service" />
</serviceCredentials>
</behavior>
</serviceBehaviors>
Last edited by VKDD; September 29th, 2012 at 03:15 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|