Comments (10)
Hi @davidhjones,
Sorry you're encountering issues. Quick question: are you starting with the Begin or Complete version of this sample?
from office-add-in-samples.
I am starting with the Complete version of this sample.
from office-add-in-samples.
Hi @davidhjones,
The behavior from the browser pop-up is expected. The add-in has to be run from the task pane in Excel. I see from your video that the task pane pops up with an error. Does that consistently happen? What happens when you click "Restart" in the task pane?
from office-add-in-samples.
One thing that may help an add-in in a bad state is clearing the cache: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache. Let us know if that gets your task pane in a workable state.
from office-add-in-samples.
Interestingly enough, when I loaded it up this morning, the Add-in does load in the task pane. Unfortunately, now I'm getting a different error. Oddly enough, following the code I would expect that my breakpoint in FilesController would get triggered to execute the code below, but it isn't.
let accessToken = await Office.auth.getAccessToken(options);
fileNameList = await callRESTApi("/api/files", accessToken);
MSAL.authentication.required.mp4
from office-add-in-samples.
I have confirmed that the exception is thrown from await Office.auth.getAccessToken(options);
, which explains why my breakpoint is never triggered (on the server).
from office-add-in-samples.
One thing to note, I have been able to make progress by switching to the Outlook add-in SSO sample. I did have issues testing with a client outside of my account’s tenant, but I believe that’s due to me not having administrative privileges to approve the Application.
from office-add-in-samples.
Hi @davidhjones,
Sorry for the delayed response; I've been out. Since the MSAL fallback path is triggering, I'm guessing there's some piece of setup that's incorrect in Azure. Double-check the Redirect URL, authorized client applications, and scopes. A setup error would explain why the Outlook sample is working and the Excel one is not.
from office-add-in-samples.
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!
from office-add-in-samples.
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
from office-add-in-samples.
Related Issues (20)
- 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
- Error when using non-localhost as redirect URI. HOT 8
- 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
- Outlook-Add-in-SSO-NAA worked only once. I can't get any token anymore 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.