Office-Add-in-samples icon indicating copy to clipboard operation
Office-Add-in-samples copied to clipboard

Need cross-platform Outlook SSO sample

Open davidchesnut opened this issue 4 years ago • 5 comments

The https://github.com/OfficeDev/PnP-OfficeAddins/tree/main/Samples/auth/Outlook-Add-in-SSO sample requires ASP.NET and cannot run on Mac. Create an Outlook SSO sample that uses Node.js to support cross platform development work.

Created based on customer suggestion: https://github.com/OfficeDev/office-js-docs-pr/issues/2955

davidchesnut avatar Oct 07 '21 19:10 davidchesnut

Sorry for late reply in the original issue, and thank you for handling it.

I want to add one comment. I wanted to mean it's better for Mac developers to provide .NET Core based sample code instead of .NET Framework app. If we have that sample, we can utilize learn how to implement it with newer .NET code.

vault79 avatar Dec 31 '21 07:12 vault79

Thanks @vault79 for that detail! Would you be developing the SSO add-in on Visual Studio for Mac and testing in that environment? Thanks!

davidchesnut avatar Jan 03 '22 00:01 davidchesnut

Thank you for your quick comment @davidchesnut , but let me double check what you mean.

With this project file, I realize that I need following technologies at least.

  • .NET Framework 4.8
  • IIS as web server

In my understanding, these 2 technologies can run only on Windows. Therefore Microsoft released .NET Core as cross platform runtime for every developers. Do you mean I can run this .NET 4.8 based sample app if I install Visual Studio for Mac even if these 2 required technologies only supports Windows ? - Sorry for my few knowlege about pure Windows technologies.. so I'm happy if you help me to understand it.

vault79 avatar Jan 04 '22 12:01 vault79

@davidchesnut : Do you have an example for Outlook add-in smillar to Office-Add-in-NodeJS-SSO project? Office-Add-in-NodeJS-SSO only supports word, excel and PPT. I am looking for similar app for outlook. Any. reference will be appreciated. Thank you in advance.

priya-cloud avatar Oct 12 '22 23:10 priya-cloud

Hi @priya-cloud, Our current plan is to point folks to the Microsoft identity platform code samples. These samples are great and cover a lot of different platform scenarios. The key is that you need to modify them to use the Office dialog API which you can find lots of info on here: Authenticate and authorize with the Office dialog API. Down the road we're working to provide a template that you could take and apply to these existing samples to modify them to work with Outlook add-ins or Office add-ins.

davidchesnut avatar Oct 13 '22 22:10 davidchesnut