A bot that authenticates users and get profile information and the latest email for the logged in user.
This bot enables users to authenticate with their Microsoft id and/or their AD domain. Then the bot uses the accesstoken to retrieve the latest email for the user.
- Support endpoints V1 (only supports AD accounts)
- Support endpoints V2 (now supports both AD accounts and Microsoft accounts)
Allow easy and secure #, even in chat sessions including multiple users
Clone this repo and then install dependencies:
git clone https://github.com/CatalystCode/node-authbot.git
cd node-authbot
git checkout master
npm install
Push directly to Azure Web App: The dev branch has been setup to push directly to Azure web app
Setup the bot:
- Populate environment variables in .env.template.
- Follow the instructions on Bot Framework website to setup Channels.
- [Optional] If the bot is hosted on Azure App Service, make sure to increase the
maxQueryString
limit by updating theweb.config
file in$HOME/site/wwwroot
like this:
<security>
<requestFiltering>
<requestLimits maxQueryString="10000"/>
...
</requestFiltering>
</security>
Many thanks to @sozercan and @GeekTrainer for your contribution.
Licensed using the MIT License (MIT); Copyright (c) Microsoft Corporation. For more information, please see LICENSE.