使用 WCF 推断凭据

发布于 2024-11-17 19:43:41 字数 273 浏览 8 评论 0原文

我需要从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慕烟庭风 2024-11-24 19:43:41

您需要按照此答案中的示例有关自定义验证器访问用户名的问题自定义服务凭据的良好概述展示了所有部分如何协同工作。在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文