使用 WCF 推断凭据
我需要从 WCF 服务获取用户的任务列表以显示在 iPhone 应用程序上。我计划使用类似 http:// /www.nayyeri.net/custom-username-and-password-authentication-in-wcf-3-5 进行身份验证,但我如何获取用户名/用户 ID 来过滤我的项目列表?
I need to get a list of tasks for a user from a WCF service to display on an iPhone app. I'm planning to use something like http://www.nayyeri.net/custom-username-and-password-authentication-in-wcf-3-5 to authenticate, but how would I pick up the username/user ID to filter my list of items?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要按照此答案中的示例有关自定义验证器访问用户名的问题。 自定义服务凭据的良好概述展示了所有部分如何协同工作。在 iPhone 端,您需要将客户端配置为通过 HTTPS 执行基本 HTTP 身份验证,才能成功调用服务。
You'll need to follow the example in the answer to this question on custom validator access to the user name. This good overview of custom service credentials shows how all the pieces work together. On the iPhone side, you'll need to configure the client to perform Basic HTTP authentication over HTTPS to successfully call the service.