/NativeClient-Xamarin-iOS

This sample shows how to build a Xamarin binding to our native ADAL for iOS library. This is a sample and is not to be used in production. For those interested in binding to our iOS library in .Net using Xamarin, this code is a good guide and will build a bindling.dll file for your Xamarin for iOS project for use with Xamarin.

Primary LanguageC#Apache License 2.0Apache-2.0

#Windows Azure Active Directory Binding Example for Objective-C for Xamarin

This sample shows how to build a Xamarin binding to our native ADAL for iOS library. This is a sample and is not to be used in production. For those interested in binding to our iOS library in .Net using Xamarin, this code is a good guide and will build a bindling.dll file for your Xamarin for iOS project for use with Xamarin.

Quick Start

###Step 0: Learn about binding objective-c libraries with Xamarin

Step 1: Download Xamarin Studio

You can get Xamarin Studio from the Xamarin website.

Step 2: Create a "iOS Binding" Project in Xamarin Studio

Select File -> New -> Solution and select "iOS Binding Project"

Step 3: Clone this code in to your Project directory

Go to the directory where you created your new project and clone the files in this repostiory. You will then need to add these files in to Xamarin Studio by clicking on your project tree and selecting "Add Files.." in the pulldown.

NOTE

The names of the files in this repository should match closely the default files that are included in the iOS Binding project for Xamarin. This will aid you in replacing the files or code with the correct files from our repository.

Step 3: Add the latest version of ADAL for iOS library to the Project

You will need to bind to libADALiOS.a in your Xamarin Studio iOS Binding project as discissed in Binding Objective-C Libraries. The easiest way to do this is to grab the latest ADAL for iOS and compile the source.

You can get the latest ADAL for iOS library here: https://github.com/MSOpenTech/azure-activedirectory-library-for-ios

Step 4: Run and use!

Run the project and then pull the .dll files out of the /bin directory Xamarin Studio will create.