How to make Google and Facebook auth in .net maui ?

Aboubacar Traore 21 Reputation points
2021-11-27T17:44:07.637+00:00

I'm making a .net maui app. I found it really good, now i want to make google and Facebook authentication in the app.
I even tried to make a class library to support that. But i still don't know how to make it work.

Can someone help me implement Google And Facebook auth in maui ?

Or even help how to make class library that can support that ?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,771 questions
{count} votes

2 answers

Sort by: Most helpful
  1. James Wilkinson 35 Reputation points
    2023-02-01T22:33:49.4466667+00:00

    Given MAUI is now released any guidance on this now?

    1 person found this answer helpful.
    0 comments No comments

  2. Damian 0 Reputation points
    2023-05-01T15:41:51.2133333+00:00

    Thankfully, Web Authenticator is a part of MAUI Essentials and the team has provided some good documentation. This allows users to use their existing Microsoft, Facebook, Google, or Apple accounts.

    WebAuthenticator API

    Here is some sample code for the View and ViewModel code from the Essentials GitHub page. Just be sure to include <UsingMauiEssentials>true</UsingMauiEssentials> into your app's .csproj file when using Essentials.

    One caveat, there is an outstanding bug on the Windows platform (GitHub: MAUI #2702, WindowsAppSDK #441)

    0 comments No comments