Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Completing forms authentication process via MS-OFBA within Office app

$
0
0

Hello,

I'm currently working on a custom WebDAV server that I would like to extend by implementing the Office Forms Based Authentication Protocol (MS-OFBA) for better integration with Office apps (namely to get around Office apps prompting the user for authentication every time when using Basic authentication).

I have it mostly working currently. The Office app (Word 2013 in this case) successfully gets redirected to my login.aspx page which opens the login form in a new window. Entering credentials successfully authenticates the user, sets the required cookie, and is redirected to my OnSuccess.aspx page. The problem is at this point, the Office app just sits there with the form window open with whatever the contents of OnSuccess.aspx are (in this case a blank page that just returns 200 OK). I can manually close the window via the X button, and then the app successfully loads the initially requested file.

I'm trying to figure out how to get the login window to close automatically (basically get the Office app to recognize that the authentication redirects are complete)

I've tried adding javascript to the OnSuccess page that closes the current window, but that just made a popup appear asking me to allow closing the window. Clicking "Yes" didn't actually make the window close.

I've also tried redirecting back to the initial request page instead of an OnSuccess.aspx page, but that just makes the app send a GET request and load the response in the login form window.

Thanks



Viewing all articles
Browse latest Browse all 2257

Trending Articles