Cocoa WebView 退出 Office365
我的应用程序使用 WebView 来访问 Office365 (SharePoint) 站点。 WebView 检查每个请求以查找 cookie,一旦找到 cookie,WebView 就会关闭,并使用此 cookie 来查询站点。
现在我需要向用户提供更改凭据的选项。为此,我删除了 Office365 URL 的所有 cookie,打开 WebView,然后尝试访问站点 URL。问题是验证 cookie 在请求中到达,而不要求任何凭据。
再次显示网络登录表单的唯一方法是:清除 cookie、关闭我的应用程序并重新启动。
如何在不关闭应用程序的情况下注销用户?
谢谢
My application uses a WebView for getting access to an Office365 (SharePoint) site. The WebView inspects every request looking for a cookie, once the cookie is found the WebView is closed and the site is consulted using this cookie.
Now I need to give the option of changing the credentials to the user. To do it I delete all the cookies for the Office365 URL, open the WebView, and try access the site URL. The problem is that the validation cookie arrives in a request without asking for any credentials.
The only way that the web login form shows again is: clear the cookies, closing my app and relaunch.
How can I logout a user without closing my app?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论