2
votes

How do i add authentication to a teams app (bot + Messaging extension) generated using the 'Yo Teams' yeoman generator? I am using typescript and there are no samples out there for auth. Secondly, since the yo teams generator generates a single bot.ts file and the auth for bots are a little different with respect to invoke activity, how do i handle the invoke activity in a msteams bot provisioned with yo teams geenrator?

1
Have you looked at the following?Dev
Yes i have, however, that is for messaging extensions and the same does not apply for bots. Hence reaching out for help on BOTS. It is a little different per this link in the end, they mention about invoke activity being forwarded to the OAuthPrompt? I am not sure i understand this right - github.com/pnp/teams-dev-samples/tree/master/samples/…Yeshwanth J
Then you may want to look at one of the other ways. Adding related docs1 Azure BOT service's oAuthCard, 2 Teams Auth flow for botsDev
Thank you Dev, i have looked at this, they all state the same. I am still kind of stuck, since the yo man generator scaffolds the entire project into one bot.ts file. So will have to dig in further and check more.Yeshwanth J

1 Answers

0
votes

currently messaging extension authentication sample is not available in typescript. You can raise user voice here.