moving the Yeoman office SSO client secret

Adam Steven 1 Reputation point
2021-07-29T08:42:03.143+00:00

Hello, I am developing an outlook add-in using the Yeoman Office generator (Office Add-in Task Pane project supporting single sign-on).

All documentation on using this program says to run "npm run configure-sso" after Yeoman has finished and it builds the AAD instance for you.

My problem is "npm run configure-sso" saves the client secret in Microsoft's Credential Manager (on the PC), but I want to host my add-in on Azure. Is there a way to move the client secret from Credential Manager into an Azure instance, or into an environment variable in the add-in?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,556 Reputation points
    2021-07-29T20:21:20.57+00:00

    Hello @Adam Steven ,

    Thanks for reaching out.

    This is still not supported by the office-addin-sso default package. You have to remove that default package and then add the code yourself to handle SSO so that you can deploy to Azure. Our product team have a plan to document this in August, so hopefully will have guidance around this soon.

    Here are some sample JavaScript to deploy to Azure app service.

    Reference:

    https://github.com/OfficeDev/office-js-docs-pr/issues/2279#issuecomment-733153415
    https://github.com/OfficeDev/office-js-docs-pr/issues/2344#issuecomment-823642553

    Hope this helps.

    Regards,
    Siva

    1 person found this answer helpful.
    0 comments No comments