Identity.Provider.Template 1.0.4

dotnet new install Identity.Provider.Template::1.0.4
                    
This package contains a .NET Template Package you can call from the shell/command line.

Identity Provider Template with Clean Architecture

A template for creating an Identity Provider based on OpenIddict with support for multiple databases, implemented following Clean Architecture principles.

Features

  • OpenIddict Integration: Complete Identity Provider implementation using OpenIddict
  • Clean Architecture: Project structure organized according to Clean Architecture principles
  • Multi-Database Support: Built-in support for multiple databases:
    • PostgreSQL
    • SQL Server
    • MySQL
  • Automatic Configuration: Automated setup based on database choice
  • Entity Framework Core: Using EF Core for data persistence
  • User Management: Complete user management system
  • Authorization: Role-based authorization system

Requirements

  • .NET 8.0
  • Entity Framework Core 8.0
  • OpenIddict 4.x

Installation

dotnet new install Identity.Provider.Template.CleanArchitecture

Usage

dotnet new ipd-clean-architecture -n YourProjectName --database PostgreSQL

Available Options

  • --database: Choose the database provider
    • PostgreSQL (default)
    • MySQL
    • SQLServer

Database Configuration

The template automatically configures:

  • Database-specific package references
  • Appropriate connection strings
  • DbContext configuration
  • Initial migrations

Project Structure

src/ ├── Domain/ # Entities and business logic ├── Application/ # Use cases and interfaces ├── Infrastructure/ # Implementations and technical details └── WebApi/ # API endpoints and configuration

Post-Installation

After project creation:

  1. Modify the connection string in appsettings.json
  2. Create initilia migration

OpenIddict Features

  • Full OAuth 2.0 and OpenID Connect support
  • Multiple authentication flows
  • Token management
  • Client management
  • Scope management

Contributing

Feel free to open issues or pull requests to improve the template.

License

MIT

  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 157 1/31/2025
1.0.3 140 1/31/2025
1.0.2 143 1/31/2025
1.0.1 144 1/31/2025