开发者

Securing A Web Service .Net

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜