从 SaveFileDialog 获取 SharePoint 凭据
我正在创建一个客户端应用程序,用户将能够在其中打开 Windows 窗体 SaveFileDialog。 用户将在此处输入特定的 SharePoint 库。 值得庆幸的是,每次用户进入他无权访问的库时,saveFileDialog 都会提示输入凭据。 稍后我需要调用一些 SharePoint Web 服务。 但是我需要用户输入的凭据才能呼叫他们。 你知道我怎样才能获得这些凭证吗? 如果这有帮助,我可以使用本机 saveFileDialog 而不是 Windows 窗体。
I'm creating a client application where the user will be able to open a Windows Forms SaveFileDialog. There the user will enter a specific SharePoint library. Thankfully for me, the saveFileDialog prompts for credentials every time the user enters to a library where he doesn't have access. Later I need to call some SharePoint web services. However I need the credentials the user entered to call them. Do you know how can I get those credentials?
If that helps I could use a native saveFileDialog instead of Windows Forms one.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设这是一个内部应用程序,您可以将当前用户的用户凭据传递给 Web 服务。
获取当前用户的 NetworkCredential (C#)
Assuming that this is an internal application, you can pass the user credentials of the current user to the web service.
Getting NetworkCredential for current user (C#)