Full-duplex WCF and user name and password verification

Source: Internet
Author: User

WCF supports two-way TCP connections, and supports the exchange protocol between the server and client. It is implemented through the full duplex mode of subscription-release. X509 Certificate encryption is required for full-duplex user name and password verification, x509 Certificate is optional for password verification in ticket mode.

In full-duplex mode, there will be a disconnection problem. At present, I have not solved it at all. In the unit project, only the reconnection is handled, but I hope someone with knowledge can tell me a better way...

The following is a demo of WCF user verification, including the ticket mode and full duplex mode. I am just getting started. Please advise me more.

Attached Demo: wcfdemo.rar

You must register an X509 Certificate before running the demo. Method:

Open a command window for the administrator ID, find the makecert.exe address, and enter the following command

Makecert.exe-Sr localmachine-SS my-A sha1-N Cn = poker-sky exchange-PE

Reference: http://www.cnblogs.com/xiaozhuang/archive/2008/04/30/1177399.html

Full-duplex WCF and user name and password verification

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.