I am stuck on how to read url parameters/token from redirected page url in Outlook web-addin. I am using DialogAPI to pop up my azure app sign-in/consent page and then trying to read tokens from redirected page.
I can see that token are passed but I couldn't figure out how to read token from url?
function GetToken(url)
{
_dlg = Office.context.ui.displayDialogAsync(url, { height: 40, width: 40 }, function (result) {
_dlg = result.value;
_dlg.addEventHandler(Office.EventType.DialogMessageReceived, processMessage);
Office.context.ui.messageParent(somevalue);
});
}
Besides that the processMessage call back never gets triggered, wondering why?
Guys any feedback would be helpful.
Thanks