Outlook add-in single sign-on failing

by David Clarke   Last Updated October 16, 2019 09:26 AM - source

I've been following the Microsoft guide for implementing SSO in an Outlook add-in. It worked as expected during development but when promoted to a production domain I'm getting an error dialog when requesting getAccessTokenAsync():

enter image description here

The (React) code is fairly simple and based on the Microsoft sample:

Office.context.auth.getAccessTokenAsync((result: Office.AsyncResult<string>) => {
    if (result.status === Office.AsyncResultStatus.Succeeded) {
        this.setState({ ssoToken : result.value }, async () => await this.setTokensInBff());
    } else {

Not sure what I might be doing incorrectly? I've tried with both the beta and the latest incremental release of the office.js lib - both give the same result.

Related Questions

findMeetingTimes returning busy times

Updated August 28, 2017 18:26 PM

Outlook Add in in Outlook 2016 installation failed?

Updated January 19, 2018 13:26 PM