0

Anyone try using Microsoft.Identy.Client package with Xamarin.Forms in MacOS project?

I try to implement OpenUrl method according to sample: https://github.com/Azure-Samples/active-directory-xamarin-native-v2/tree/master but in AppDelegate in MacOS project VS cannot see AuthenticationContinuationHelper class. Microsoft.Identity.Client class is limited: Microsoft.Identity.Client in MacOS Project not show all items

At .Droid and .iOS project everything work properly.

Anyone was handled with this?

1 Answers1

0

So there is a video from Build 2018 as well as the Slide Deck that discuss that. You need to make sure in your nuget settings you have the "show pre-release packages" checked, and then install the Microsoft.Identity.Client. I had the same issue until I did that, installed the nugets, cleaned and rebuilt the solution.

Nuget Settings

The problem with Xamarin.mac is that the library does not currently, nor does it sound like it will any time soon support the Xamarin.mac platform. This is mentioned in Open Issue #522 on the GitHub repository, after some further reading into it. That was dated on February 20th, with no news since then, so I don't believe they have it on their roadmap. Must be something with the way MacOS handles the brewer handoff, let alone the MacOS was just recently supported by some of their services in Azure, which makes me think there is not enough market share there yet in this space?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459