Sep 08 2016 07:02 AM - edited Sep 08 2016 07:02 AM
Hi,
if you developed an Office 365 web app secured by Azure AD and if you want to distribute an Office add-in for the same services, then you may be interested in the open source code sample we released on github https://github.com/Keluro/Office365-AddinWeb-SignInSample
Indeed, OAUTH flow in Office web add-ins can be problematic: see this blog post for example.
Our objective is to converge to the best solution for the Office 365 dev community and our end-users.
Best regards
Benoit Patra