Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catalystcode/node-authbot
🔑 A bot that authenticates users and get profile information about the user
https://github.com/catalystcode/node-authbot
authbot azure-ad bot oauth
Last synced: about 2 months ago
JSON representation
🔑 A bot that authenticates users and get profile information about the user
- Host: GitHub
- URL: https://github.com/catalystcode/node-authbot
- Owner: CatalystCode
- Created: 2016-08-16T20:47:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T07:30:46.000Z (over 7 years ago)
- Last Synced: 2024-11-12T23:36:14.362Z (about 2 months ago)
- Topics: authbot, azure-ad, bot, oauth
- Language: JavaScript
- Homepage:
- Size: 8.73 MB
- Stars: 28
- Watchers: 7
- Forks: 19
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AuthBot for Node.js with Microsoft Bot Framework
_A bot that authenticates users and get profile information and the latest email for the logged in user_.
[Checkout out the bot on Skype](https://join.skype.com/bot/dce91571-f312-4395-8602-91a145d1f52a)
![Auth Bot Demo in Skype](botdemoskype.gif)[Check out the demo site](https://authbot.azurewebsites.net/)
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.
## Features
* Support endpoints V1 (only supports AD accounts)
* Support endpoints V2 (now supports both AD accounts and Microsoft accounts)Allow easy and secure sign in, even in chat sessions including multiple users
## Installation
Clone this repo and then install dependencies:
git clone https://github.com/CatalystCode/node-authbot.git
cd node-authbot
git checkout master
npm installPush directly to Azure Web App:
The [dev branch](https://github.com/CatalystCode/node-authbot/tree/dev) has been setup to push directly to Azure web appSetup the bot:
* Populate environment variables in [.env.template](.env.template).
* Follow the instructions on [Bot Framework website](https://dev.botframework.com/bots) to setup Channels.
* [Optional] If the bot is hosted on Azure App Service, make sure to increase the `maxQueryString` limit by updating the `web.config` file in `$HOME/site/wwwroot` like this:```
...
```
## Acknowledgement
Many thanks to [@sozercan](https://github.com/sozercan) and [@GeekTrainer](https://github.com/GeekTrainer) for your contribution.## License
Licensed using the MIT License (MIT); Copyright (c) Microsoft Corporation. For more information, please see [LICENSE](LICENSE).