Reputation: 629
we are developing an office.js add-in that connects to CRM through OAuth.
Here is the oAuth flow:
User clicks connect to CRM, a new window opens
User connects to CRM and gets redirected to our Website
we will finish the OAUth process and send the token to parent document (Add-in)
it is working fine in OWA but in Outlook Desktop we are unable to send the token to Parent document.
we tried:
local storage(parent window (add-in) watches local storage, once the token is received child window saves it in local storage but the parent is not receiving the local storage update until outlook is restarted)
customs events(didn't work due to IE same origin policy)
is this a bug in outlook? is there any other way we can pass the token to parent window?
Upvotes: 0
Views: 387
Reputation:
For authentication we recommend opening the auth window using the displayDialogAsync API.
Then, the Office.context.ui.messageParent API can be called from the opened window to send a message pack to its parent.
Upvotes: 0