maui-authentication

Integrate WebAuthenticator and MSAL.NET authentication into .NET MAUI apps.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/snailb1007/snail-codex-skills --skill maui-authentication-snailb1007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-authentication
Source: https://github.com/snailb1007/snail-codex-skills/tree/main/skills/maui-authentication
Command: npx skills add https://github.com/snailb1007/snail-codex-skills --skill maui-authentication-snailb1007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Add authentication to .NET MAUI apps. Covers WebAuthenticator for generic OAuth 2.0 / social login, and MSAL.NET for Microsoft Entra ID (Azure AD) with broker support (Microsoft Authenticator), token caching, Conditional Access, platform-specific setup (Android, iOS, Windows), DelegatingHandler for bearer token API calls, and Blazor Hybrid integration.

Core Features & Use Cases

  • WebAuthenticator supports OAuth 2.0 / OpenID Connect flows for social login and custom providers.
  • MSAL.NET integration enables Entra ID (Azure AD) sign-in with broker, token caching, and conditional access.
  • Platform-specific setup guidance for Android, iOS, and Windows, plus Blazor Hybrid authentication patterns.
  • Token persistence and API calls secured with a DelegatingHandler that injects bearer tokens for outgoing requests.

Quick Start

Configure a MAUI project with WebAuthenticator and MSAL.NET, register an Entra ID app, and verify sign-in flows and bearer token usage in API calls.

Frequently Asked Questions about maui-authentication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add authentication to a .NET MAUI app?

Add .NET MAUI authentication by integrating WebAuthenticator for generic OAuth 2.0 social logins or MSAL.NET for Microsoft Entra ID with broker support, token caching, and Conditional Access.

What is the best way to secure API calls with bearer tokens in MAUI?

The best way to secure API calls with bearer tokens in .NET MAUI is using a DelegatingHandler that automatically injects persisted tokens into outgoing HTTP requests.

Does MSAL.NET work with Microsoft Authenticator broker on iOS and Android?

Yes, MSAL.NET works with the Microsoft Authenticator broker on iOS and Android, enabling Entra ID sign-in, Conditional Access support, and secure token caching across platforms.

Can I use WebAuthenticator for social logins in a MAUI Blazor Hybrid app?

Yes, you can use WebAuthenticator for social logins within a MAUI Blazor Hybrid app, applying specific authentication patterns and UI integration for cross-platform scenarios.

How do I configure platform-specific settings for Entra ID authentication in MAUI?

Configure Entra ID authentication in MAUI by applying platform-specific setup for Android, iOS, and Windows, registering your Entra ID app, and verifying sign-in flows.

When should I choose MSAL.NET over WebAuthenticator for MAUI authentication?

Choose MSAL.NET over WebAuthenticator when you need Microsoft Entra ID features like broker support, Conditional Access, and token caching, whereas WebAuthenticator suits generic OAuth 2.0 social logins.