Bot service with OAuth endpoint
I've been playing around new the Bot Service preview in Azure. I've managed to create a fully functional LUIS powered bot which is capable of calling back-end API's secured with Azure AD. Now for some of the bot actions, I need to verify the account of the user. These are company accounts that also come from Azure AD. I've managed to build an OAuth flow that authenticates my user and then returns an access token. But I'm not sure what the best place is to define the endpoint. Two options I've considered / tried: Use the default "messages" endpoint. This works, but feels like a workaround. I now need to introduce code which checks whether the HttpRequest is indeed an OAuth postback and treat it accordingly. Use a different endpoint, which as far as I know implies creating a second function. Not a problem per se, but how am I going to get the access token for my user back to the conversation? That second option got me thinking. On the one hand, Bot Service is built on Azure Functions and uses the same principles. On the other hand, a normal functions instance hosts multiple functions and that doesn't seem to be the idea with bot service. It will become increasingly challenging I think to communicate between oauth endpoints in one function instance and the bot service in another. Not really what you want. So what would be the best way of adding the OAuth endpoint to the bot service? Or do I, in this case, need to revert to the 'old' way of creating bots within a web API project?
When should we use all three (trait, free-text and keywords) search strategies in a user-defined entity?
alternative to wit.ai merge since it is deprecated now
my telegram bot keeps sending messages endlessly
Telegram: don't search my bot to start conversation
How to add MS bot to slack?
How to get the last executed command in a Telegram bot?
How can i customize answer of Bot Framework Help Command?
How can I identify the particular attachments when I click on a button in cards?
Accessing facebook user id for microsoft bot framework
Wit.ai Dynamic quick replies and random responses? How
I'm trying to implement a quote system in mIRC for my Twitch bot, reading from the text file works, but adding doesn't
How to set Slack bot presence “online” when using Events API
how to save the data using state clinet in bots
Connecting LUIS dialog to form dialog and mapping builtin fields
ValidationResult throws : “Object reference not set to an instance of an object”. when passing back choices
How to disconnect LUIS of Microsoft Bot Connector selectively?