A good example of custom Integrated Identity Authentication

Source: Internet
Author: User
When writing a WebService, the most painful thing is identity authentication. It is not suitable for anything. At first, I thought it would be nice to use integrated identity verification, but the permissions and users are both Windows-based. Program I can't control it. In the last few twists and turns, I need to find this example on the Internet (the source cannot be found. If the author sees it, I can add it). It feels better to implement it, the ihttpmodule can be rewritten to implement user-defined user authentication for intercept user names. In this way, you can define the name and role of the Integrated identity, and then use the web method as the rule name for verification by the security module in the enterprise class library, I think it is a better method. (One disadvantage is that adding web references in vs is difficult because it is necessary to verify the web references to be added. Finally, we can use the WSDL and the username and password.

Digest.zip
The following is a reference BAT file added with WSDL:Code(In fact, this is on msdn. It is only here to help people who do not want to check msdn ).

WSDL
Visualstudiodir = D: \ Program Files \ Microsoft Visual Studio 8 \ SDK \ v2 . 0 \ Bin \
Set namespace
= Umen. Common. webref
Set outdir
= D :\
Set outfilename
= Reference. CS
Set Username
= Ylx
Set Password
= Yan. Lixin
Set webserviceuri
= Http :// 10.0.0.19 : 8082 /Webserviceumenmembershipop. asmx
Echo export visualstudiodir%wsdl.exe/namespace: % namespace %/out: % outdir % outfilename %/Username: % username %/password: % password % webserviceuri %
@ Call
" %Visualstudiodir1_wsdl.exe " /Namespace: umen. Common. webref/out: reference. CS/Username: ylx/password: Yan. Lixin http :// 10.0.0.19 : 8082 /Webserviceumenmembershipop. asmx

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.