从哪里获取用于 Authentication.asmx 的凭据?
对于我们启用 FBA 的 SharePoint 网站之一,我们需要访问各种 Web 服务。我知道在进行任何其他 SP Web 服务调用之前我们需要调用 Authentication.asmx。
如何获取当前登录用户的用户名和用户名传递给 Authentication.asmx 服务的密码?
谢谢。
更新:我使用已知的用户名和密码尝试了 Marek 的解决方案,并得到了 Authentication.asmx 的 401 错误。所以可能有些设置被关闭了。管理员正在调查此事。
For one of our FBA enabled SharePoint site, we need to access various web services. I know that we need to invoke Authentication.asmx before we make any other SP web service call.
How do I get the currently logged in user's username & password to pass to the Authentication.asmx service?
Thanks.
Update: I tried Marek's solution with a known username and password and got a 401 for Authentication.asmx. So probably some settings are off. The admin is looking into it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
但是,根据会员提供商的设置(密码是以纯文本形式存储、加密还是散列?是否需要通过安全答案才能获取密码?),检索密码可能会更加困难甚至不可能,您将需要向用户询问。
However, depending on the settings of the membership provider (is password stored in plain text, encrypted or hashed? is it required to pass the security answer to get the password?) retrieving the password may be more difficult or even impossible and you will need to ask the user for it.