Comments (6)
Waldek -
Of course after I post this I figure it out! :) I'm dealing with the infinite loop problem but it's fairly well documented so I should be able to figure it out.
from sp-dev-fx-webparts.
If you're using ADAL JS with Angular you don't need to call this.authCtx.acquireTokens
yourself. Instead you could define the list of endpoints for which ADAL JS should retrieve AAD access token. ADAL JS ships with an HTTP interceptor that automatically monitors all web requests issued using the HTTP service and if the request URL matches one of the registered endpoints, ADAL JS will automatically retrieve the access token for it.
from sp-dev-fx-webparts.
Thanks Waldek for all the help! When I tried doing it the angular way, i.e. setting adal up in the .config function when the app starts. I receive "AuthenticationContext is not defined at Object.AdalModule.provider.init()", which I know is because AuthenticationContext is not in the global namespace because we are using systemjs. However, I'm not sure how to get the AuthenticationContext into the global namespace. Any suggestions?
from sp-dev-fx-webparts.
Looking forward to read more about your solution 🙂
from sp-dev-fx-webparts.
I have the same issue, when I try to use the sample without any changes in the code. I installed the webpart on SPO and tried to use it within the workbench. I get on both the same error: token renewal operation failed due to timeout. The error occures when the acquireToken function is called.
from sp-dev-fx-webparts.
I noticed that would sometimes happen if I had developer tools open in Chrome when the acquireToken function was called ...
from sp-dev-fx-webparts.
Related Issues (20)
- react-kanban-board - Error: Cannot find module 'node:os' HOT 4
- Custom layout template hangs page and never loads entries
- react-script-editor: Your dev environment is running NodeJS version v20.10.0 which does not meet the requirements for running this tool. HOT 1
- react-list-search - HOT 1
- js-advanced-commenting ping user notification? HOT 1
- react-modern-version-history - How to set up and make it work.
- react-calendar - why really slow when first opening a page with this webpart on it? HOT 1
- react-birthdays - HOT 2
- Script editor web part for modern pages stopped working HOT 6
- error while running the webpart
- react-calendar - HOT 1
- Twitter feed not appearing on React Twitter webpart after configuring profile.
- Issue with calendar category component to filter.
- Calendar webpart - Facing issue while creating weekly recurrence event
- react-script-editor - HOT 4
- react-script-editor - cannot add two body HOT 1
- react-script-editor - Will this still work post November 2024? HOT 1
- React Rhythm of Business Calendar not correctly rendering recurring events on month view HOT 8
- Recurring Events not working
- React Pages Hierarchy SPFx - changing the style of button styles HOT 1
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 sp-dev-fx-webparts.