Comments (8)
Hi @glr0221,
Thanks for reaching out. @davidchesnut, could you please investigate?
from office-add-in-samples.
It works now. I found out that this only works on Outlook Clients Beta build. The error I reported is because I used OWA / Browser to test my NAA-SSO-enabled addin. Is my assumption correct that this only works for Outlook Clients Beta build as the feature is still in preview? I had errors in both mobile and web.
We can close this ticket for now.
from office-add-in-samples.
Hi @glr0221, glad to hear this is working now! You can get it to work in the browser, but you have to add a second redirect. See step 7 in the Outlook NAA sample. Also you need a login hint when in the browser which is what this call to getAuthContext helps with. This is because the NAA broker architecture isn't required in the browser scenario. Excel, Word, and PowerPoint do not yet work with this configuration to work in the browser, but we plan to add that soon. And you are correct there is no support for mobile at this time.
from office-add-in-samples.
I have tried this again with the browser. I added a 2nd redirect and also see that getAuthContext run successfully. Unfortunately, when the popup shows it is blank and the following error is shown in my logs :
Unable to acquire token interactively: ServerError: invalid_client: AADSTS700046: Invalid Reply Address. Reply Address must have scheme brk-9199bf20-a13f-4107-85dc-02114787ef48:// and be of Single Page Application type. Trace ID: 4a184908-2168-40dc-9be3-e4a69fb8b000 Correlation ID: 018f847a-99c4-70a3-9bde-fc378fa07c3b Timestamp: 2024-05-17 02:56:20Z
Do you have any idea how I can resolve this? Please note that this same code works perfectly fine in BETA channel of outlook.
from office-add-in-samples.
For today, I retested again and somehow managed to make the NAA-SSO work on the browser (incognito-chrome). Although silent token acquisition is successful, I get the following error/message in my console :
InteractionRequiredAuthError: login_required: AADSTS50058: A silent sign-in request was sent but no user is signed in. The cookies used to represent the user's session were not sent in the request to Azure AD. This can happen if the user is using Internet Explorer or Edge, and the web app sending the silent sign-in request is in different IE security zone than the Azure AD endpoint (login.microsoftonline.com). Trace ID: f1d125a9-c385-4793-b5cf-f413caa01d00 Correlation ID: 018f991f-fffb-74ab-8ca9-cadc4d15392d Timestamp: 2024-05-21 03:09:22Z
The token was received successfully and was usable for GRAPH transactions.
from office-add-in-samples.
Hi @glr0221,
If 3P cookies are blocked then authentication won't work and you'll need to look into workarounds. This blog post has additional details: Using device state for an improved SSO experience on browsers with blocked third-party cookies.
But sounds like it is working now?
from office-add-in-samples.
Sorry for the late response. Everything is working now. Thank you.
PS : I will have to study the link you sent my way.
Thanks again.
from office-add-in-samples.
Thanks again.
from office-add-in-samples.
Related Issues (20)
- Converting Outlook VSTO add-in to web add-in HOT 5
- Example works only in OWA HOT 5
- Office-Add-in-NodeJS-SSO Example fails to claim scope HOT 1
- Sample: Outlook-Add-in-SSO-NAA HOT 9
- How to debug against outlook online account with MFA? HOT 4
- Not able to display Html HOT 5
- How to create Word Add-in SplitButton Control? HOT 1
- Office.AutoShowTaskpaneWithDocument with shared runtime? HOT 6
- Outlook-Add-in-SSO-NAA: Questions on usage on mobile devices HOT 2
- Can we implement NAA-SSO for spam-addins?
- Hello World add-in doesn't work in desktop Outlook 2016 HOT 4
- In SSO fallback, getAccessTokenMSAL() returns a different result than Office.auth.getAccessToken()
- In SSO Fallback, getAccessTokenMSAL() returns a different user than Office.auth.getAccessToken() HOT 7
- The Spam Reporting example uses Office.onReady, which will not work on Classic Outlook HOT 3
- Edit the Existing mail HOT 8
- is there a equation support? HOT 1
- Outlook Add-In SSO NAA example contains code that isn't in the types. HOT 2
- Outlook SSO NAA in pure JS without node.js HOT 3
- Excel custom function on blazoraddin technique works locally but not when published on AZURE HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-add-in-samples.