We know that OAUTH flow cannot be implemented in Office add-ins like you would do for a normal (non iFramed) web app, we must rely on some popup technique: see the best explanation here.
To overcome this, Microsoft released a dialogAPI within Office.js. This dialog API for a while was only available for Office Desktop.
If a developer wants to have a solution that works on Office Online (and to be allowed to be distributed on the Office store) he had to implement a fallback solution involving a plain old browser pop-up. Remark: this is what we do in the open source sample for Outlook that we released.
As explained in the Documentation, to test the availability we have to check using this code sample
if (Office.context.requirements.isSetSupported('DialogAPI', 1.1)) {
// Use Office UI methods; } else { // Alternate path }
The thing is, today, I tried to force the usage of dialogAPI even when the if() statement returns false. Surprise, it looks like dialogAPI is working even in Office Online ! (Chrome, Edge, FF, IE tested). That rocks!
My questions are:
- Will we have dialogAPI in Office Online for all browsers (including mobiles)?
- Can we have an ETA when this will be production ready?
- Will we have to continue implementing a fallback solution?
- What about old Office builds (if it works for all browser maybe for old IE as well)?