Planner task webpart using SPFX

%3CLINGO-SUB%20id%3D%22lingo-sub-58826%22%20slang%3D%22en-US%22%3EPlanner%20task%20webpart%20using%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-58826%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EI%20would%20like%20to%20develope%20a%20webpart%20using%20SPFX%20that%20will%20show%20planner%20task%20of%20current%20user.%20I%20have%20idea%20about%20graph%20API.%20Here%20i%20would%20like%20to%20know%20how%20can%20i%20get%20the%20graph%20token%20in%20SPFX.%20As%20the%20webpart%20running%20in%20sharepoint%20context%20wheather%20i%20will%20need%20active%20directory%20application%20or%20not.%20If%20AD%20application%20need%20and%20any%20permission%20required%20admin%20consent%20how%20should%20i%20handle%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-58930%22%20slang%3D%22en-US%22%3ERe%3A%20Planner%20tast%20webpart%20using%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-58930%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20your%20reply%2C%20though%20it%20says%20office%20graph%20it%20is%20actually%20post%20query%20which%20use%20digest%20token%2C%20it%20is%20similer%20to%20sharepoint%20REST%20API%20.%20I%20need%20to%20invoke%20graph%20api%20which%20need%20bearer%20token%20which%20is%20different%20than%20digest%20token.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-58919%22%20slang%3D%22en-US%22%3ERe%3A%20Planner%20tast%20webpart%20using%20SPFX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-58919%22%20slang%3D%22en-US%22%3ETake%20a%20look%20at%20this%3A%20%3CA%20href%3D%22https%3A%2F%2Fblog.mastykarz.nl%2Foffice-graph-sharepoint-framework-client-side-web-parts%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.mastykarz.nl%2Foffice-graph-sharepoint-framework-client-side-web-parts%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi All,

I would like to develope a webpart using SPFX that will show planner task of current user. I have idea about graph API. Here i would like to know how can i get the graph token in SPFX. As the webpart running in sharepoint context wheather i will need active directory application or not. If AD application need and any permission required admin consent how should i handle this?

2 Replies
Highlighted

Thanks for your reply, though it says office graph it is actually post query which use digest token, it is similer to sharepoint REST API . I need to invoke graph api which need bearer token which is different than digest token.