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

Unable to use SSO when browser blocks third-party cookies in outlook add-in #4939

Open
HugoLd opened this issue Oct 3, 2024 · 1 comment
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info

Comments

@HugoLd
Copy link

HugoLd commented Oct 3, 2024

Provide required information needed to triage your issue

I created an add-in (using the new integrated spam reporting feature) on which I need SSO to work.

I configured properly the WebApplicationInfo and everything works fine on most people's browser, but after some clients complaints, I investigated and found out some browsers block third-party cookies by default(brave, but chrome plan to do it by default as well).
I'm able to reproduce the problem in chrome when I disable manually the third-party cookies,

As chrome is the main browser and plan to disable them by default, I'm worried about the future of this add-in.

Any workaround ?

Your Environment

Any browser with disabled third party cookies

Expected behavior

Have a way to manage SSO on browser refusing third-party cookies

Current behavior

Authentication doesn't work

Steps to reproduce

Disable third party cookies in the browser
Setup an outlook add-in with WebApplicationInfo and call Office.auth.getAccessToken

Context

Some of my users are unable to use the add-in(I can't make them enable third-party manually), but likely in the next years no users will be able to use it anymore.
Could be link to this ticket : #2993

Useful logs

image

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Oct 3, 2024
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Oct 3, 2024
@exextoc exextoc self-assigned this Oct 3, 2024
@shighosh-msft
Copy link

Hi @HugoLd, to address the issue with SSO with 3P cookie blocking in the browser, please refer to the following article: https://devblogs.microsoft.com/identity/managed-devices-for-blocked-third-party-cookies/

Also, a long-term solution you can also explore nested app authentication (NAA) - the details are here: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/enable-nested-app-authentication-in-your-add-in

@shighosh-msft shighosh-msft added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info
Projects
None yet
Development

No branches or pull requests

3 participants