MarcTron.ADAL 1.0.2

This package, built on top of the original Active Directory Authentication Library (ADAL), makes extremely easy to authenticate users inside your Xamarin projects. You only need 1 line of code!

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.8.6 or higher.

Install-Package MarcTron.ADAL -Version 1.0.2
dotnet add package MarcTron.ADAL --version 1.0.2
<PackageReference Include="MarcTron.ADAL" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MarcTron.ADAL --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ADAL Plugin for Xamarin

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

What is this repository for?

Authenticate the users in a Xamarin Project.
You can learn more following the tutorial: http://www.xamarinexpert.it/2018/03/01/adal-made-easy/

LINKS

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

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);

ADAL Plugin for Xamarin

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

What is this repository for?

Authenticate the users in a Xamarin Project.
You can learn more following the tutorial: http://www.xamarinexpert.it/2018/03/01/adal-made-easy/

LINKS

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

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);

Release Notes

Added compatibility with old PCL projects

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0 261 7/21/2019
1.1.0 317 3/1/2019
1.0.5 484 7/25/2018
1.0.4 359 6/21/2018
1.0.3 346 6/14/2018
1.0.2 385 3/28/2018
1.0.1 370 3/1/2018
1.0.0 303 3/1/2018
Show less