TrustIdentity.Core 1.0.2

dotnet add package TrustIdentity.Core --version 1.0.2
                    
NuGet\Install-Package TrustIdentity.Core -Version 1.0.2
                    
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.Core" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TrustIdentity.Core" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="TrustIdentity.Core" />
                    
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.Core --version 1.0.2
                    
#r "nuget: TrustIdentity.Core, 1.0.2"
                    
#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.Core@1.0.2
                    
#: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.Core&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=TrustIdentity.Core&version=1.0.2
                    
Install as a Cake Tool

TrustIdentity.Core

Core OAuth 2.0 / OpenID Connect engine


📦 Overview

TrustIdentity.Core contains the core business logic for OAuth 2.0 and OpenID Connect protocols. This package implements all grant types, token generation, validation, and security features.


🎯 Purpose

This is the heart of TrustIdentity. It contains:

  • OAuth 2.0 / OIDC protocol implementations
  • Token generation and validation
  • Grant type handlers
  • Security features (PKCE, DPoP, mTLS, PAR, JAR)
  • Service implementations

📋 Key Components

Services

  • TokenService - Token creation and validation
  • AuthorizationCodeService - Authorization code management
  • RefreshTokenService - Refresh token handling
  • DeviceFlowService - Device authorization flow
  • CibaService - Client-Initiated Backchannel Authentication
  • TokenExchangeService - Token exchange (RFC 8693)
  • DPoPService - Demonstrating Proof-of-Possession
  • MutualTlsService - Mutual TLS support
  • PushedAuthorizationService - PAR (RFC 9126)
  • JwtSecuredAuthorizationService - JAR (RFC 9101)
  • KeyManagementService - Automatic key rotation

Validators

  • ClientValidator - Client authentication
  • ScopeValidator - Scope validation
  • PkceValidator - PKCE validation
  • AuthorizeRequestValidator - Authorization request validation
  • TokenRequestValidator - Token request validation

Models

  • Client - OAuth/OIDC client configuration
  • IdentityResource - OpenID Connect scopes
  • ApiScope - OAuth 2.0 scopes
  • ApiResource - Protected API resources

🔧 Usage

This package is typically not used directly. Use TrustIdentity.Server instead.

Direct Usage (Advanced)

using TrustIdentity.Core.Services;

// Inject services
services.AddScoped<ITokenService, TokenService>();
services.AddScoped<IAuthorizationCodeService, AuthorizationCodeService>();
services.AddScoped<IRefreshTokenService, RefreshTokenService>();

📚 Implemented RFCs

  • ✅ RFC 6749 - OAuth 2.0 Authorization Framework
  • ✅ RFC 6750 - OAuth 2.0 Bearer Token Usage
  • ✅ RFC 7009 - OAuth 2.0 Token Revocation
  • ✅ RFC 7519 - JSON Web Token (JWT)
  • ✅ RFC 7591 - OAuth 2.0 Dynamic Client Registration
  • ✅ RFC 7636 - PKCE
  • ✅ RFC 7662 - OAuth 2.0 Token Introspection
  • ✅ RFC 8628 - OAuth 2.0 Device Authorization Grant
  • ✅ RFC 8693 - OAuth 2.0 Token Exchange
  • ✅ RFC 8705 - OAuth 2.0 Mutual-TLS
  • ✅ RFC 8707 - Resource Indicators
  • ✅ RFC 9101 - JWT Secured Authorization Request (JAR)
  • ✅ RFC 9126 - Pushed Authorization Requests (PAR)
  • ✅ RFC 9396 - OAuth 2.0 CIBA
  • ✅ RFC 9449 - DPoP

🏗️ Architecture

TrustIdentity.Core/
├── Services/           # Business logic
├── Validation/         # Request validators
├── Models/            # Domain models
├── Security/          # Security utilities
└── Extensions/        # Helper extensions

📄 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 (11)

Showing the top 5 NuGet packages that depend on TrustIdentity.Core:

Package Downloads
TrustIdentity.Storage

Entity Framework Core and distributed caching storage implementations for TrustIdentity.

TrustIdentity.AI

AI-powered fraud detection and behavior analysis for TrustIdentity.

TrustIdentity.Saml

SAML 2.0 protocol support for TrustIdentity.

TrustIdentity.AspNetCore

ASP.NET Core middleware, tag helpers, and integration for TrustIdentity server.

TrustIdentity.WsFederation

WS-Federation protocol support for TrustIdentity.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 176 2/5/2026
1.0.1 170 2/4/2026
1.0.0 187 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.