Announcements
Hi Team,
I like to understand how to receive MSAL token with in PCF control , to call API (Graph). PCF finally will deployed with in Modern driven app.
-Thanks
Hello,
You can check this post - https://taerimhan.com/consuming-microsoft-graph-api-from-pcf-control/
Thank you for sharing , But it required separate sign-in by user again , Can we avoid this ?
I have never built anything similar so this example is the only thing I can recommend.
If the user already has a current, active, valid token, then you can retrieve is in MSAL using AcquireTokenSilent in msal.net or acquireTokenSilent if you're doing it in a Single Page App with the Node libraries.
However, the fact that the user is logged into your app does NOT necessarily mean that their current token is also valid for some other app, even if that app is a Microsoft one. So, first try to get the Token silently, but then fail over to prompting the user to log in if necessary.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 525 Most Valuable Professional
Haque 308
Kalathiya 234 Super User 2026 Season 1