-
Notifications
You must be signed in to change notification settings - Fork 64
Home
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.
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.
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.