office365 - Determining whether the user is Windows Live or Office 365 User in a Office.js Task Pane? -
given oauth urls live , o365 different** (hope i'm right 1 in first place), there way know form office task pane add-in whether current user running live id or office 365 id?
we resort showing 2 buttons user login: 1 "login windows live" , "login office 365" initiate respective oauth steps. want make there's 1 login button , preset type of user logged in.
you want take @ azure ad converged auth. here's article discusses various approaches https://azure.microsoft.com/en-us/documentation/articles/active-directory-appmodel-v2-overview/
and here's blog post talks same: https://blogs.msdn.microsoft.com/richard_dizeregas_blog/2015/09/04/working-with-the-converged-azure-ad-v2-app-model/
the converged auth supports implict grant ideal task pane add-in
also we're building auth helper achieve same within task pane ease. i'll edit response when goes public.
edit:
you can use officehelpers authenticate microsoft, google, facebook or 3rd party oauth provider.
here's library: https://unpkg.com/@microsoft/office-js-helpers@0.5.0/dist/office.helpers.js
here's documentation: https://github.com/officedev/office-js-helpers
please file issue https://github.com/officedev/office-js-helpers/issues if have problems/find bug.
Comments
Post a Comment