How to use Windows Authentication in a Web service

Source: Internet
Author: User

Many friends know that Windows authentication is supported in Web service. But it's not that much to use good friends, because there are a few special points to be aware of.

1. How to configure on the server side

Note here that authentication mode defaults to Windows, but it is useless to set this pattern alone. You must also set the authorization rule. And don't just allow, you must finally deny all users or groups that have not been allow.

The service must be published to the IIS server before it can be truly debugged. If you are not publishing, and just debugging in VS, you can't make some settings, such as what type of Windows Validation mode is, and so on.

2. Publishing services

It is generally necessary to disable anonymous access. At the same time you may need to select a specific validation mode (basic, or integrated)

If you select Basic, the client can dynamically specify a user name and password. However, it should be noted that at this time the user name and password is sent in clear text, there are security risks. (Can be used with SSL) to solve the problem

If you select integration, then the client will automatically negotiate with the server to determine whether to use NTLM or Korbers authentication, which means that the client's Windows credentials need to be automatically sent to the service side.

Related Article

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.