maui-authentication

Implement OAuth2 and OpenID Connect authentication for .NET MAUI apps.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Rimblehelm/.NET-MAUI-Skills --skill maui-authentication
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-authentication
Source: https://github.com/Rimblehelm/.NET-MAUI-Skills/tree/main/maui-authentication
Command: npx skills add https://github.com/Rimblehelm/.NET-MAUI-Skills --skill maui-authentication

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provide a secure, cross-platform authentication framework for .NET MAUI apps, focusing on safe token handling and platform-native flows.

Core Features & Use Cases

  • Cross-platform authentication patterns (OAuth2, OpenID Connect, JWT) for MAUI apps.
  • Token lifecycle management, refresh tokens, and secure storage to protect credentials.
  • Abstraction via services/interfaces (e.g., IAuthService) to keep UI clean and testable.
  • Guidance for securing API calls with automatic Bearer token injection.

Quick Start

Provide a basic login flow using WebAuthenticator and SecureStorage to obtain and securely store tokens.

Frequently Asked Questions about maui-authentication

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

FAQPage Schema
How do I implement secure cross-platform authentication in .NET MAUI?

You implement secure .NET MAUI authentication using WebAuthenticator for OAuth2 and OpenID Connect login flows across iOS, Android, and Windows. The framework handles JWTs and abstracts the logic via an IAuthService interface to ensure your UI remains clean and testable.

What is the best way to store OAuth2 tokens securely in a MAUI application?

The best way to store OAuth2 tokens in a MAUI application is using the built-in SecureStorage feature. This framework ensures token lifecycle management and refresh tokens are protected on the device, preventing unauthorized access to user credentials across iOS, Android, and Windows platforms.

How do I automatically inject Bearer tokens into API calls from a MAUI app?

You automatically inject Bearer tokens into API calls by utilizing the IAuthService abstraction provided by this framework. It securely retrieves the stored JWT from SecureStorage and attaches it to your HTTP requests, ensuring your API calls remain authorized without cluttering your UI code.

Does this MAUI authentication framework support token refresh and lifecycle management?

Yes, this MAUI authentication framework fully supports token refresh and complete token lifecycle management. It handles JWT expiration and automatically refreshes OAuth2 tokens using securely stored credentials, maintaining valid Bearer tokens for your API calls across iOS, Android, and Windows.

Can I use WebAuthenticator with OpenID Connect for cross-platform login flows in MAUI?

Yes, you can use WebAuthenticator with OpenID Connect to establish cross-platform login flows in MAUI. This framework provides the necessary patterns to initiate OAuth2 authentication securely across iOS, Android, and Windows while managing the resulting JWTs through an IAuthService abstraction.