ADAL Plugin for Xamarin

ADAL Plugin for Xamarin

It is a very intuitive Plugin to enable Microsoft Authenticator on Xamarin.
It requires only 1 line of code.

RELEASE NOTE

v.1.0: First Release

SETUP

* Install into your PCL/.NetStandard project and Client projects.
* The Nuget package will automatically install the Microsoft ADAL package version 3.19

HOT TO USE IT

To authenticate an user you need to add this single line of code:

AuthenticationResult data = await MTADAL.Current.Authenticate(Authority, ResourceUri, ClientId, ReturnUri);

where Authority, ResourceUri, ClientId, ReturnUri are the strings containing your authentication data.

Supported Platforms

* Android
* iOS
* UWP

ANDROID – IMPORTANT

Inside the OnCreate method of your MainActivity , add this line:
MTADAL.Current.Init(this);
just after
Xamarin.Forms.Forms.Init(this, bundle);

LINKS
* Available on Nuget: https://www.nuget.org/packages/MarcTron.ADAL
* Tutorial: http://www.xamarinexpert.it/2018/03/01/adal-made-easy/
* To report any issue: https://bitbucket.org/marcojak81/mtadal