Home

Teams Bot Graph API

%3CLINGO-SUB%20id%3D%22lingo-sub-810428%22%20slang%3D%22en-US%22%3ETeams%20Bot%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-810428%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20developing%20a%20very%20simple%20Teams%20bot%20that%20needs%20to%20make%20use%20of%20graph%20api%20in%20the%20backend.%20Since%20bots%20don't%20support%20silent%20authentication%2C%20I'm%20forced%20to%20authenticate%20my%20user%20inside%20the%20bot%20and%20acquire%20the%20token%20to%20call%20graph.%20My%20development%20environment%20is%20in%20Node.JS.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20library%20of%20sorts%20to%20achieve%20this%3F%20I%20checked%20a%20few%20samples%20in%20github%20but%20they're%20complex%20implementations%20with%20dialogs%20and%20all.%20Can%20anyone%20provide%20some%20sample%20code%20to%20quickly%20acquire%20a%20token%20for%20calling%20graph%3F%20It's%20fine%20even%20if%20it's%20skeleton%20code.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-810428%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBot%20Framework%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
eynarain
Contributor

I'm developing a very simple Teams bot that needs to make use of graph api in the backend. Since bots don't support silent authentication, I'm forced to authenticate my user inside the bot and acquire the token to call graph. My development environment is in Node.JS.

 

Is there a library of sorts to achieve this? I checked a few samples in github but they're complex implementations with dialogs and all. Can anyone provide some sample code to quickly acquire a token for calling graph? It's fine even if it's skeleton code.

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
14 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
23 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies