TrustIdentity.AspNetCore 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package TrustIdentity.AspNetCore --version 1.0.1
                    
NuGet\Install-Package TrustIdentity.AspNetCore -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TrustIdentity.AspNetCore" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TrustIdentity.AspNetCore" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="TrustIdentity.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TrustIdentity.AspNetCore --version 1.0.1
                    
#r "nuget: TrustIdentity.AspNetCore, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TrustIdentity.AspNetCore@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TrustIdentity.AspNetCore&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=TrustIdentity.AspNetCore&version=1.0.1
                    
Install as a Cake Tool

TrustIdentity.AspNetCore

ASP.NET Core integration for TrustIdentity


📦 Overview

TrustIdentity.AspNetCore provides ASP.NET Core integration, including middleware, endpoints, and dependency injection configuration.


🎯 Purpose

This package bridges TrustIdentity.Core with ASP.NET Core, providing:

  • HTTP endpoints for OAuth/OIDC
  • Middleware integration
  • Dependency injection setup
  • Request/response handling

📋 Key Components

Endpoints

  • /connect/authorize - Authorization endpoint
  • /connect/token - Token endpoint
  • /connect/userinfo - UserInfo endpoint
  • /connect/introspect - Token introspection
  • /connect/revocation - Token revocation
  • /connect/endsession - Logout endpoint
  • /connect/device - Device authorization
  • /connect/ciba - Backchannel authentication
  • /connect/par - Pushed authorization request
  • /connect/register - Dynamic client registration
  • /.well-known/openid-configuration - Discovery document
  • /.well-known/jwks - JSON Web Key Set

Middleware

  • TrustIdentityMiddleware - Main middleware
  • RateLimitingMiddleware - Rate limiting
  • DDoSProtectionMiddleware - DDoS protection
  • TenantResolutionMiddleware - Multi-tenancy support

Extensions

  • ServiceCollectionExtensions - DI configuration
  • ApplicationBuilderExtensions - Middleware setup

🔧 Usage

Basic Setup

using TrustIdentity.AspNetCore.Extensions;

var builder = WebApplication.CreateBuilder(args);

// Add TrustIdentity services
builder.Services.AddTrustIdentity(options =>
{
    options.IssuerUri = "https://localhost:5001";
})
.AddInMemoryClients(Config.GetClients())
.AddInMemoryIdentityResources(Config.GetIdentityResources())
.AddInMemoryApiScopes(Config.GetApiScopes())
.AddDeveloperSigningCredential();

var app = builder.Build();

// Use TrustIdentity middleware
app.UseTrustIdentity();

app.Run();

Advanced Configuration

builder.Services.AddTrustIdentity(options =>
{
    // Issuer
    options.IssuerUri = "https://identity.example.com";
    
    // Security
    options.RequireHttps = true;
    options.RequirePkce = true;
    
    // Features
    options.EnableAI = true;
    options.EnableMultiTenancy = true;
    
    // Endpoints
    options.EnableDiscoveryEndpoint = true;
    options.EnableTokenEndpoint = true;
    options.EnableUserInfoEndpoint = true;
    options.EnableIntrospectionEndpoint = true;
    options.EnableRevocationEndpoint = true;
    
    // Token lifetimes
    options.AccessTokenLifetime = 3600;
    options.IdentityTokenLifetime = 300;
    options.RefreshTokenLifetime = 2592000;
});

🏗️ Architecture

TrustIdentity.AspNetCore/
├── Endpoints/          # HTTP endpoints
├── Middleware/         # ASP.NET Core middleware
├── Extensions/         # Service/app extensions
└── Handlers/          # Request handlers

📚 Documentation


📄 License

Apache 2.0 - See LICENSE

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on TrustIdentity.AspNetCore:

Package Downloads
TrustIdentity.Server

Complete Enterprise IAM Server - OAuth 2.0, OIDC, SAML, WS-Fed

TrustIdentity.Bff

Backend-for-Frontend (BFF) pattern implementation for TrustIdentity - Simplifies SPA security by handling tokens server-side.

TrustIdentity.UI.Library

Default UI Library for TrustIdentity - Provides pre-built login, consent, and account management screens with AI-powered fraud detection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 112 2/5/2026
1.0.1 97 2/4/2026
1.0.0 107 1/22/2026

- Full implementation of OAuth 2.0 and OpenID Connect 1.0.
     - Integrated SAML 2.0 and WS-Federation support.
     - Advanced AI/ML-driven fraud detection and behavioral analysis.
     - FAPI 1.0 & 2.0 (Security Profile) compliance.
     - Support for PKCE, DPoP, Mutual TLS, PAR, and JAR.
     - Entity Framework Core support for SQL Server, PostgreSQL, MySQL, and SQLite.
     - Multi-tenant isolation and Backend-for-Frontend (BFF) patterns.
     - Complete Admin UI and REST API for identity management.