How to Add Google Authentication in Blazor MAUI Core 9 for Android platform?

Reem Matr 0 Reputation points
2025-05-04T18:12:25.4733333+00:00

I would like to build an application with blazor hybrid core 9 MAUI for android users, one of main functions is to continue with google , how can I achieve this? I've checked documentation but i can't find direct solution and also did my research about it, I've tried web authenticator but no luck

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,094 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 75,156 Reputation points
    2025-05-05T19:38:48.9166667+00:00

    Web authenicator is for the hosting Maui app. You would add the code to the Maui host, then pass info to the Blazor app via TryDispatch()

    Blazor hybrid is basically a WASM Blazor app hosted via a Maui webview. You can use the MSAL library to authenticate via the blazor code.

    https://learn.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/standalone-with-authentication-library?view=aspnetcore-9.0&tabs=visual-studio

    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.