开发者

Securing A Web Service .Net

开发者 https://www.devze.com 2023-03-11 01:41 出处:网络
I am looking all over the internet and cannot seem to find a good example on how to pass credentials to a web service to secure it.

I am looking all over the internet and cannot seem to find a good example on how to pass credentials to a web service to secure it.

Can someone point me to a detailed sample how to add security to a web service?

It looks like everyone is using a WCF Model for this. Is ASMX getting phased out? If not I am looking to pass credentials to ASMX, otherwise see the WCF approach. Any good tutorials on this subject y开发者_开发技巧ou guys know of?


Take a look here:

  • Programming WCF Security at MSDN
  • WCF Security Guidance by Microsoft Patterns & Practices


I suggest using WCF as a platform for your web service (not legacy asmx services).

There are different ways to secure the service. It depends on what kind of credentials you have.

Programming WCF Security

If you have custom username/password security, you might want to look at TransportWithMessageCredential option.

0

精彩评论

暂无评论...
验证码 换一张
取 消