Reputation: 4342
I need someone to clarify which Api to use, it is MS AL or ADAL for Xamarin forms. I need the Api to Access AzureAD. So which one is the right one.
Please help as this is important for me to work on Azure AD.
Update:
There are examples, but I really dont know which one is in used for xamarin forms. There is not much info I can find. Please help so that I can start coding and try it out and get back here for the problem encountered.
is ADAL deprecated or no longer supported?
Upvotes: 0
Views: 383
Reputation: 1229
In regards to which library to choose, the answer @juunas posted is correct. Once you have that figured out, there are a number of samples which use Xamarin.
Here is an MSAL sample using Xamarin.
And an ADAL sample using Xamarin
And a B2C sample using Xamarin and MSAL
Or you can open an issue on the MSAL or ADAL repos to get help, assistance, or questions answered, or use their respective wikis for more information about the libraries and how to use them.
Upvotes: 0
Reputation: 58863
ADAL is for Azure AD's v1 endpoint, and MSAL is for the newer v2 endpoint. The protocols have had some changes, so that's why the new library.
You can get an idea what is different here: https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-compare.
To boil it down:
If you only need to support organizational accounts, v1 works fine. Remember that at the moment apps registered via the Azure Portal are v1 apps. V2 apps have a separate portal still, though they are moving it to Azure Portal too.
Upvotes: 1