douzhulv1699 2014-12-01 14:25
浏览 63
已采纳

Ajax文件浏览器AutoLogin Microsoft Office身份验证

I'm using a AjaxFileBrowser to browse WebDav files:

Each user with single credentials and associated folder. I succeeded to make user authentificate and avoid login popop in the browser.

I'm using basic authentification under SSL.

Now i tried to run files with my microsoft office application, i'm getting an authentification pop-up to be able to read/write those files.

Are there any issue to remove this authentification and make it automatic.

As it' mentionned in the official documentation i can use NTLM or Kerberos, but i will loose the first authentification step.

  • 写回答

1条回答 默认 最新

  • doufeixi6014 2014-12-04 03:31
    关注

    Unfortunately there is no way to avoid authentication dialog with Basic authentication with Microsoft Office. Microsoft Office and a web browser (or other your WebDAV client app) run in separate processes and web browser can not pass the authentication info in this case.

    Here are a couple of options to totally avoid login dialog:

    1. Implement MS-OFBA authentication or MS-OFBA together with Basic. See Choosing WebDAV Server Authentication Shema article to find if MS-OFBA is what you need. You can totally avoid login
      dialog in case of Internet Explorer (but not in case of other web browsers).

      Microsoft Office applications on Windows are using Internet Explorer to display the MS-OFBA login dialog. If user is logging into your website with Internet Explorer and during the login checks the "Remember me" checkbox, than permanent cookies will be shared between the IE window (withing a single website) used in Microsoft Office login dialog and IE web page displaying your website. The login dialog will not be displayed when opening the Microsoft Office document in this case.

      With other web browsers the user will get the MS-OFBA login dialog at least during the first document access. If he checks the 'Remember me' checkbox during the document access, next time the login dialog will not be presented.

      This scenario may also work with Microsoft Office for MAC, but I do not know what web browser MS Office on MAC is using inside its login dialog.

    2. Implement URL authentication. Your urls will look like http://webdavserver.com/[SessionID1234567890]/path/file.docx Make sure you do not pass pass the ID as URL parameters in this case, as parameters are truncated by Microsoft Office.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘