-
Notifications
You must be signed in to change notification settings - Fork 112
Home
#Windows Azure Active Directory Wiki
This package will give you with a quick and easy way to set up your first iOS app that's integrated with Windows Azure Active Directory. The sample apps included in download are designed to run on any platform. It also provides libraries so you can build your own node.js REST API with Client Credential flow to protect endpoints.
By the end of these walkthroughs, you should be able to build a running HTTP server with the following features:
- A node.js server running an REST API interface leveraging OAuth2 Client Credential flows against Windows Azure Active Directory
- A registered application inside of Windows Azure Active Directory that allows your sample company to authenticate against the REST API you built.
- A iOS application leveraging the Windows Azure Active Directory SDK for iOS to access this REST API uisng Windows Azure AD
We've released all of the source code for this running example in GitHub under an Apache 2.0 license, so feel free to clone (or even better, fork!) and provide feedback on the forums.
The sample consist of two pieces:
- A node.js Server that exposes a simple Task REST API for your application to use. This leverages Windows Azure Active Directory OAuth2 to protect its APIs.
- A iOS Task Application that accesses the REST API and leverages the iOS SDK for authentication using OAuth2.
You can grab the SDK for iOS by doing the following:
git clone git@github.com:MSOpenTech/azure-activedirectory-library-for-ios.git
The sample is located under the /Samples folder and is called "iOS Task Application"
You can click on the Windows Azure Active Directory iOS Sample App.xcodeproj
file to launch the application.
You can grab the TODO server by doing the following:
git@github.com:WindowsAzureAD/Azure-AD-TODO-Server-Sample-For-Node.git
The application is in the /node-server directory. For setup instructions please refer to the readme.md
that is included in the download. You will need to have Mongo installed on your development machine.
You will need to register your REST API server with your Windows Azure Active directory tenant in order for the application to work. Please follow the steps outlined in the walkthrough here to register your server.
Using the information you got from #4, fill in the appropriate values in to the Constants.m
file in the iOS Task Application sample
The application will call the correct endpoints and orchestrate a flow.
Code hosted on GitHub under Apache 2.0 license