【发布时间】:2017-08-21 06:04:12
【问题描述】:
如您所见,我使用 webhttpbinding 创建了一个简单的 wcf 服务:
[OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "/Data/{data}")]
string GetData(string data);
和实施:
public string GetData(string value)
{
return string.Format("You entered: {0}", value);
}
我想创建一个自定义授权和身份验证大约 2 周,但我做不到。我搜索了很多,但我可以找到 wshttpbinding 而不是 webhttpbinding 的身份验证。
我最近描述主要问题的问题:
My authorize custom function in wcf doesn't execute .Should i define it in webconfig?
【问题讨论】:
标签: c# wcf authentication authorization webhttpbinding