OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
677 stars 95 forks source link

Issue with Redirect URI for Vainity/Custom URL in 21vianet Office365 #4794

Open leapyear1969 opened 2 months ago

leapyear1969 commented 2 months ago

Article URL

https://learn.microsoft.com/en-us/office/dev/add-ins/develop/create-sso-office-add-ins-aspnet

Issue

when i try to using app bc59ab01-8403-45c6-8796-ac3ef710b3e3 (Outlook on the web) to SSO my outlook on the web, it show below error message in China Office 365 instance:

"strServiceExceptionMessage": "AADSTS50011: The redirect URI [https://partner.outlook.cn/owa/spaExtSSO.aspx]specified in the request does not match the redirect URIs configured for the application bc59ab01-8403-45c6-8796-ac3ef710b3e3. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal..

I fount a preview issue looks fixed in Global Office 365, issue 3523

image

please help to take a look at in China Office 365 , thanks!

mmhforjavaweb commented 2 months ago
image

We also encountered the same issue. On the global tenant, the plugin calls OfficeRuntime.auth.getAccessToken() normally, but there is a problem with the 21vianet tenant. The desktop outlook client works fine, but there is an issue with the Outlook web.

image
AlexJerabek commented 2 months ago

Thanks for reporting this @leapyear1969 and @mmhforjavaweb.

I'm going to transfer this to the office-js repo where we investigate product issues.