Giter Site home page Giter Site logo

node-authbot's Introduction

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.

node-authbot's People

Contributors

bnookala avatar ritazh avatar sozercan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-authbot's Issues

Issues with Active Directory Cortana login

Hello, I'm using this example to login into an Azure AD. it works on Skype, but I'm having trouble getting it to work with Cortana (iOS).

For a start, in Cortana, tapping anywhere outside of the sign in button, makes the button disappear. I've found that this is because of the botbuilder.Prompts.text(session, "You must first sign into your account."); line, not sure to fix this.

Then, once the button is tapped, I can successfully sign in, but the page with the magic code never displays, the in-app browser closes and that's it.

Any ideas?

Is there any way to test this on the bot emulator?

Hi,
I've tried testing the code on the bot emulator a bunch of times but the link it generates to redirect to the OAuth pin always leads to a 'page not found' error. How can I test/troubleshoot this using the bot emulator?.. Please let me know if there's any more information that I can provide to explain my issue. Please help @ritazh

"Can only clone a git repository to the root of the workspace"

Sorry for stupidity, but Iโ€™m stuck at the very first step. When trying to do
git clone https://github.com/CatalystCode/node-authbot.git
(in the online code editor), I get this message:
Can only clone a git repository to the root of the workspace

What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.