Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
Brandon Werner edited this page Feb 4, 2014 · 2 revisions

Windows Azure Active Directory Node.js REST API Sample TODO Server

Overview

This wiki introduces a walkthrough that show you how to get a Node.js sample REST API server up and running using OAuth2 API protection from Windows Azure AD. This server has been developed to allow for easily testing Azure Active Directory Authentication libraries (ADAL) on non-Microsoft platforms. However, the server can be used anywhere to see examples for writing a REST API server and protecting the endpoints using Windows Azure Active Directory.

The libraries are included in standard NPM packages. The demonstration server is very minimal and provides just enough to get you started using the ADAL library. If you need additional documentation about the APIs, click here.

Supported Azure Active Directory Authentication Libraries

In order to authenticate with the REST API Sample TODO server, you'll need one of the ADAL client libraries below. Simply clone down to your developer machine and configure as stated in the Walkthrough.

ADAL for iOS

ADAL for Android

ADAL for .Net

About Passport.js

Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a username and password, Facebook, Twitter, and more. We have developed a strategy for Windows Azure Active Directory for OAuth2. We will install this module and then add the Windows Azure Active Directory strategy plug-in.

Ready to get started?

Walk-Throughs for Windows Azure AD REST API Sample Server