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

Support for SharePoint. #73

Open drudv opened 6 years ago

drudv commented 6 years ago

The following code:

var authenticator = new OfficeHelpers.Authenticator();
authenticator.endpoints.registerMicrosoftAuth('...');
authenticator.authenticate(OfficeHelpers.DefaultEndpoints.Microsoft, true);

produces this error in SharePoint Online being called from an Embed:

error TypeError: Cannot read property 'displayDialogAsync' of undefined

Looks like it's not currently supported by SharePoint Online. If so, do you plan to support it soon?

WrathOfZombies commented 6 years ago

No plans on this yet. If you wish you could send a PR. For the moment I am going to focus on stabilizing the latest release and post that I can look into this.

drudv commented 6 years ago

If you wish you could send a PR

But it's necessary to support it on the SharePoint side as well, isn't it?

russgove commented 6 years ago

Hey I've been trying to do something similar. You may find this interesting: https://yetanothersharepointblog.wordpress.com/2018/04/13/creating-and-outlook-add-in-using-an-spfx-webpart/