Reusing cookies in MS-OFBA

achifal 0 Reputation points
2023-09-19T08:48:15.32+00:00

Hey!

I open documents with office uri schema (ms-word:ofe|u) and implemented protection of my documents using MS-OFBA in accordance with this documentation. When sending an OPTIONS request, I return X-FORMS_BASED_AUTH_REQUIRED, X-FORMS_BASED_AUTH_RETURN_URL with which the user can successfully authenticate into the application.

Then the office application (in my case it is Word and I tried several versions of Word, they all work quite the same) receives the cookie from the server and starts sending them with each request. This part of the implementation works correctly.

The problem is that when I open a new document, I get the login form again and the cookies are not reused. Because of this, I need to authenticate and fill out a form every time I open a document.

In the MS-OCPROTO documentation in the Additional Considerations section, I see that the client (Word) may not send a cookie to the OPTIONS request, in addition, client creates a new session when it sends an HTTP OPTIONS request.

How can I avoid this problem and make sure that the cookies received during the first login are used when opening other documents on the same server?

Thanks in advance for any help!

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,845 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,117 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,595 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.