In theory, is it possible for Azure AD or B2C to leverage the Facebook SDK for auth?

273 views Asked by At

I have an iOS application, and my customers my be logged into Facebook via

  1. The Web Browser
  2. The native config in Settings
  3. The Facebook app/ messenger

When I follow the instructions using MSAL or ADAL it seems that I'm only using the Safari browser for authentication.

  • Is there any way (even in theory) to leverage the credentials already stored within option 2 or option 3?

  • What would be needed for the MSAL / ADAL to leverage option 2 or 3?

1

There are 1 answers

2
Ryan Pangrle On

The ADAL ObjC v3 experimental library is currently not supported and we recommend using a 3rd party library. Our current recommendation is NXOAuth2. There is no MSAL for iOS yet. If I were to take a guess #2 might not work due to a need to show user consent interrupts, and #3 would add a dependency on the Facebook SDK that we would not want to require all users to take. You can file a feature request for both of those, but neither would be coming for a while, assuming they are even feasible.

Edit: #1 will be possible in the future using SFSafariViewController, but B2C currently doesn't support the features necessary to securely use SFSafariViewController in app.