Intent.AspNetCore.Identity module introduces ASP.NET Core Identity for user authentication, authorization, and account management using Entity Framework Core. It provides a complete user management system with role-based access control.
Overview
ASP.NET Core Identity is a membership system that adds login functionality to your application. This module integrates Identity with your Intent Architect application, generating all the necessary entities, configurations, and infrastructure code.What Gets Generated
Identity Entities
The module creates Identity user and role entities in your domain model:AspNetCoreIdentityConfiguration
Configures Identity services in your application:IdentityServiceCollectionExtensions
Extension methods for service registration:Key Features
User Management
Complete user registration and account management
Role-Based Access
Assign users to roles for authorization
Password Security
Configurable password complexity and hashing
Account Lockout
Automatic lockout after failed login attempts
Database Schema
Identity creates the following tables:User Registration
Example user registration flow:User Authentication
Example login flow:Role Management
Create and assign roles:Authorization
Use role-based authorization in controllers:Current User Service
Access the current authenticated user:Password Reset
Implement password reset flow:Email Confirmation
Implement email confirmation:Two-Factor Authentication
Enable two-factor authentication:Installation
Dependencies
Intent.Entities(>= 5.1.13)Intent.EntityFrameworkCore(>= 5.0.26)Intent.Modelers.DomainIntent.OutputManager.RoslynWeaver
Integration
Identity integrates with:Intent.Security.JWT- For JWT token-based authenticationIntent.AspNetCore.Identity.AccountController- For account management endpoints
Next Steps
JWT Authentication
Add JWT token authentication to Identity
Security.JWT
Configure JWT bearer authentication
Account Controller
Generate account management endpoints
Authorization
Implement role and policy-based authorization
