TrustIdentity.AspNetCore
1.0.1
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
<PackageReference Include="TrustIdentity.AspNetCore" Version="1.0.1" />
<PackageVersion Include="TrustIdentity.AspNetCore" Version="1.0.1" />
<PackageReference Include="TrustIdentity.AspNetCore" />
paket add TrustIdentity.AspNetCore --version 1.0.1
#r "nuget: TrustIdentity.AspNetCore, 1.0.1"
#:package TrustIdentity.AspNetCore@1.0.1
#addin nuget:?package=TrustIdentity.AspNetCore&version=1.0.1
#tool nuget:?package=TrustIdentity.AspNetCore&version=1.0.1
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 middlewareRateLimitingMiddleware- Rate limitingDDoSProtectionMiddleware- DDoS protectionTenantResolutionMiddleware- Multi-tenancy support
Extensions
ServiceCollectionExtensions- DI configurationApplicationBuilderExtensions- 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
- Setup Guide - Complete setup
- Database Setup - Database configuration
📄 License
Apache 2.0 - See LICENSE
| Product | Versions 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. |
-
net10.0
- TrustIdentity.Abstractions (>= 1.0.1)
- TrustIdentity.AI (>= 1.0.1)
- TrustIdentity.Core (>= 1.0.1)
- TrustIdentity.Saml (>= 1.0.1)
- TrustIdentity.Storage (>= 1.0.1)
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.
- 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.