Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO not working in Firefox browser, error 13006 or 13001 #5283

Closed
SE-Hubert opened this issue Jan 16, 2025 · 4 comments
Closed

SSO not working in Firefox browser, error 13006 or 13001 #5283

SE-Hubert opened this issue Jan 16, 2025 · 4 comments
Assignees
Labels
Area: authentication Issue related to authentication Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Possible-Solution Similar-Issue

Comments

@SE-Hubert
Copy link

SE-Hubert commented Jan 16, 2025

Provide required information needed to triage your issue

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Office
  • Host [Excel, Word, PowerPoint, etc.]: Outlook
  • Office version number: NA
  • Operating System: NA
  • Browser (if using Office on the web): Firefox

Current behavior

We developed and implemented the SSO authentication in our Office outlook add-in. But we have some issues in the Firefox browser.

In chrome, edge or even the new outlook application, the SSO works correctly, but when I try to authenticate with the SSO in Firefox I either que and Error 13006 or 13001 and the SSO never works... I checked into the docs at https://learn.microsoft.com/en-us/office/dev/add-ins/develop/troubleshoot-sso-in-office-add-ins but even when I tried to sign out and then sign back I get the same error... I also tried emptying the Firefox browser cache to no avail.

The error is thrown when executing the OfficeRuntime.auth.getAccessToken({ allowSignInPrompt: true }); also tried removing all the parameters to use just OfficeRuntime.auth.getAccessToken() But it didn't work either

Steps to reproduce

  1. Install our xml at https://office365.secure-exchanges.com/SecureExchanges.xml our any valid manifest with an SSO configured
  2. Open side panel on message compose or read
  3. Click the "activate license" button so that the SSO tries and then you should get the error if it fails. Or simply try to run the getAccessToken function.

Useful logs

  • Console errors: Object { name: "No user is signed into Office.", message: "No user is signed into Office.", code: 13001 }
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jan 16, 2025
@SE-Hubert
Copy link
Author

I found this bug in mozilla issues could it be linked?
https://bugzilla.mozilla.org/show_bug.cgi?id=1931036

@Rick-Kirkham Rick-Kirkham added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: authentication Issue related to authentication Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Jan 16, 2025
@Rick-Kirkham
Copy link
Contributor

@mattgeim Can you take a look?

@SE-Hubert Did you note this line from the article that you linked to?

"... if a user accesses Outlook on the web from Firefox with Enhanced Tracking Protection turned on, they'll encounter error 13001."

Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Solution 1:

Disabling 'Prevent cross-site tracking' in the Safari preferences and restarting the browser does allow the request to work but this isn't a viable option for a public add-in.

Reference:

Solution 2:

OfficeRuntime.auth.getAccessToken and Office.context.auth.getAccessTokenAsync both seem to rely on third party cookies, probably a cookie from login.microsoftonline.com.

Reference:

@SE-Hubert
Copy link
Author

I though I tested it, but look like I was wrong. By disabling the tracking protection it works fine thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: authentication Issue related to authentication Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Possible-Solution Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants