我需要从WCF服务获取用户的任务列表,以便在iPhone应用上显示。我打算使用类似http://www.nayyeri.net/custom-username-and-password-authentication-in-wcf-3-5的内容进行身份验证,但如何选择用户名/用户ID来过滤我的项目列表呢?
答案 0 :(得分:0)
您需要按照此question on custom validator access的答案中的示例关注用户名。这个good overview of custom service credentials显示了所有部分如何协同工作。在iPhone方面,您需要将客户端配置为通过HTTPS执行基本HTTP身份验证,以成功调用该服务。