astrolabe-local-users

Manage local user accounts, authentication, MFA, and password resets in .NET apps.

1|5|Updated Aug 6, 2023
One-click install
npx skills add https://github.com/astrolabe-apps/astrolabe-common --skill astrolabe-local-users
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astrolabe-local-users
Source: https://github.com/astrolabe-apps/astrolabe-common/tree/main/skills/astrolabe-local-users
Command: npx skills add https://github.com/astrolabe-apps/astrolabe-common --skill astrolabe-local-users

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a reusable local user management layer for .NET applications, delivering email verification, MFA, password resets, and profile management to simplify implementing username/password authentication without relying on external OAuth providers.

Core Features & Use Cases

  • Local user creation, authentication, MFA, and password resets.
  • REST API endpoints through AbstractLocalUserController for standard user operations.
  • Pluggable security with IPasswordHasher and pluggable email services.
  • Email verification flow and optional MFA for enhanced security.
  • Suitable for apps that require custom user storage and business rules.

Quick Start

Configure your project to include Astrolabe.LocalUsers, define a NewUser model, extend AbstractLocalUserService and AbstractLocalUserController, and wire up IPasswordHasher and IEmailService in DI to enable local-auth flows.

Frequently Asked Questions about astrolabe-local-users

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

FAQPage Schema
How do I implement local authentication with MFA and email verification in a .NET app?

You implement local authentication by extending AbstractLocalUserService and AbstractLocalUserController, then wiring up IPasswordHasher, IEmailService, and a token generator in dependency injection to handle user creation, MFA, and email verification.

What is the best way to add password reset and user management to .NET without external OAuth?

The best way to add local password resets without external OAuth is using a reusable local user management layer that provides pluggable security and email services, integrating directly with EF Core or other custom data stores for user storage.

Does this .NET local authentication Skill work with EF Core for custom user storage?

Yes, this local authentication Skill works with EF Core. It integrates with EF Core or other custom data stores, making it suitable for .NET applications that require custom user storage and specific business rules.

How do I set up the API endpoints for local user creation and authentication?

You set up API endpoints by extending AbstractLocalUserController, which provides standard REST API endpoints for local user operations including account creation, authentication, MFA, password resets, and profile management.

Do I need a separate email service to enable email verification and password resets?

Yes, you need an email service. The Skill requires a pluggable IEmailService implementation alongside a password hasher and token generator to successfully execute email verification flows and password reset requests.

When should I use a local user management layer instead of external OAuth providers?

You should use a local user management layer when your .NET application requires custom user storage and specific business rules for username/password authentication, rather than relying on external OAuth providers for identity management.