bots


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?

Related Links

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?

Categories

HOME
automapper
functional-programming
schema.org
d3.js
histogram
header
cisco
msmq
swarm
lda
getopenfilename
orc
c#-7.0
xsl-fo
salt-cloud
codefluent
libgit2
tableview
liferay-6.2
stackexchange.redis
batch-rename
qa
environment
morris.js
php-5.3
mapnik
windows2012
reporting
john-the-ripper
knights-tour
android-collapsingtoolbar
mongoengine
cloudera-manager
db2-luw
cups
linq.js
python-sounddevice
right-click
swfupload
contactless-smartcard
cloudwatch
knockout-2.0
openstack-glance
extjs4.1
htmlspecialchars
pen
patternlab.io
case-when
msxml
perl-data-structures
cocoa-bindings
pjax
xcode6.4
msg
jsonix
openquery
callouts
openmrs
perceptron
html.actionlink
gitlab-omnibus
knife
search-form
actionpack
python-curses
sunos
igor
bittorrent-sync
jack
jms-serializer
map
postgres-xc
xs
axacropdf
reentrancy
gprof
towers-of-hanoi
clearinterval
msinfo32
type-safety
yuidoc
servercontrol
boost-foreach
radscheduler
canonicalization
libxslt
android-2.1-eclair
explicit
resharper-5.0
facebook-fbml
projectpier
tacit-programming
twitter-feed
remote-working

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App