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
670 stars 96 forks source link

[BUG] SSO doesn't work on macOS Sonoma - neither in App nor on the Web - OfficeRuntime.auth.getAccessToken() always returns 13006 Client Error #4035

Closed tuskar-dev closed 7 months ago

tuskar-dev commented 8 months ago

Your Environment

Expected behavior

Return valid identity token from Microsoft

Current behavior

Always returns 13006 error code - client error

Steps to reproduce

Easiest way to reproduce is to run official complete SSO sample:

git clone https://github.com/OfficeDev/Office-Add-in-samples sso && cd sso/Samples/auth/Office-Add-in-NodeJS-SSO/Completesso && npm install && npm run configure-sso && npm run start

This runs flawlessly on windows but on macOS it fails with 13006 error code which is not really helpful. We tried doing everything that the documentation suggests but even after cache delete, hard restart etc. it always fails with 13006

Link to live example(s)

Can't really share a scriptlab demo as this example would need to be a verified addin in Azure.

Provide additional details

None

Context

We need to validate identity of our users against private domain and allow them to access internal services.

Useful logs

This is only thing that error returns: { "name": "Error occurred in the authentication request from Office.", "message": "An unexpected error occurred in the client.", "code": 13006 }

exextoc commented 8 months ago

Can you please share the network logs at this id OutlookExtensibility@M365x53858506.onmicrosoft.com

microsoft-github-policy-service[bot] commented 7 months ago

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

microsoft-github-policy-service[bot] commented 7 months ago

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

tuskar-dev commented 7 months ago

Sorry for the late reply - commenting just to let you know that enabling 2FA cleared this issue and everything worked as expected. Thank you