Azure B2C Login on Xamarin forms app with Face/TouchId/Fingerprint/Keychain integration with API

Baba Mallum 6 Reputation points
2021-06-15T22:06:44.253+00:00

We are using Azure B2C for login/authentication of our users. This works fine on our website (social and email login etc).
Our mobile app is built in Xamarin forms and we are trying to build a native login experience (using native app controls vs. a web view within the app that B2C presents) that integrates natively with the device biometrics for login (FaceId, TouchId, fingerprint login).
As you can imagine, doing this in the webview that Azure B2C requires doesn't allow a native login experience.
The overall goal here is 2 fold:

  1. Build a native login experience
  2. Integrate with biometrics.

Question:

  1. Does Azure B2C have an API that enables this, especially so we can use authorization code flow without a UI. ROPC exists but does it integrate with social accounts too?
  2. If not, is there a way to integrate biometric login with Azure B2C on mobile when the login screen is presented in a webview? So that when the B2C login page in the webview is presented, a user can login with touch/faceId and save that information to they keychain (on iOS and the equivalent on Android)
Developer technologies .NET Xamarin
Microsoft Security Microsoft Entra Microsoft Entra External ID
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Sohrab 21 Reputation points
    2021-09-02T00:14:18.667+00:00

    The only solution that can be thought of is to include a screen beforehand that has the option to Sign in/ Sign up and on that screen, you can have the face ID automatically run. If anyone else has a better answer please let me know because we would love to utilize it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.