Skip to content

๐Ÿ”‘ A bot that authenticates users and get profile information about the user

Notifications You must be signed in to change notification settings

CatalystCode/node-authbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

48 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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 Auth Bot Demo in Skype

Check out the demo site

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 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 the web.config file in $HOME/site/wwwroot like this:
<security>
	  <requestFiltering>
	  	<requestLimits maxQueryString="10000"/>
	  	...
	  </requestFiltering>
</security>

Acknowledgement

Many thanks to @sozercan and @GeekTrainer for your contribution.

License

Licensed using the MIT License (MIT); Copyright (c) Microsoft Corporation. For more information, please see LICENSE.

About

๐Ÿ”‘ A bot that authenticates users and get profile information about the user

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •