Pass Authenication cookie to MS Word to open word document without MS Word authentication popup

Varun Arora 1 Reputation point
2022-02-03T15:33:05.683+00:00

Hello,

We have a website where we list the MS Word documents and a WebDav setup and user has to login for viewing the list of documents.
Users can edit the documents online in Office online and while opening the document remotely(by supplying the Client URL through WOPI Host), it asks for Authentication popup.

Is there a way to pass authentication cookie from my website to MS Word to avoid double authentication?

Thanks,
Varun

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
862 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,450 questions
Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
119 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,331 Reputation points
    2022-02-04T09:12:30.003+00:00

    Hello VarunArora,

    Please check the solution in the next official article: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/credentials-prompt-access-webdav-fqdn-sites

    Then set OpenDocumentsReadWriteWhileBrowsing DWORD Value on a client machine under the key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\<version>\Common\Internet.
    Set the Value data to 1.

    Additionally, you can considering enabling Cookie Authentication to ease the way of access from your office applications:
    https://learn.microsoft.com/en-us/office/dev/add-ins/develop/itp-and-third-party-cookies


    --If the reply is helpful, please Upvote and Accept as answer--