OfficeDev / office-js-helpers

[ARCHIVED] A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs
MIT License
126 stars 56 forks source link

Office Version 1907 / Windows 1903 - Authentication Redirect #143

Open albimcleod opened 4 years ago

albimcleod commented 4 years ago

Our office-js add-on has been working fine for Authentication, and but with the recent release of Windows 1903 in combination with Office 1906, after the user logs into the authenticator, it does not redirect back to my Add-On and stays in the same window. Zero changes on our end, rolling back Office it works again.

I will also note the Authentication Dialog has changed behaviour, where it would previosu show a nice title, it now shows a title along with the URL.

I have the same problem with other Add-ons from the Store .

Anyone experiencing the same and have a workaround.

aarongut commented 4 years ago

I'm seeing the same behavior with our Outlook add-in after updating to windows 1903. Our add-in works fine in outlook online in edge (I understand this update switched the webview from IE11 to Edge).

IanVS commented 4 years ago

This is also broken for us, and I'd love a solution for our customers, so I'm tagging the folks mentioned in the readme: @casieber / @Zlatkovsky can anything be done here to fix this?

aarongut commented 4 years ago

I was able to build a workaround using local storage. Basically, the oauth redirect page sets a token in local storage and the host page polls local storage periodically looking for the token

IanVS commented 4 years ago

Thanks @Zlatkovsky. I see now that your PR https://github.com/OfficeDev/office-js-helpers/pull/123 would have avoided this kind of confusion, sorry about that. Thanks for responding despite no longer being involved!