TrustIdentity.Core
1.0.2
dotnet add package TrustIdentity.Core --version 1.0.2
NuGet\Install-Package TrustIdentity.Core -Version 1.0.2
<PackageReference Include="TrustIdentity.Core" Version="1.0.2" />
<PackageVersion Include="TrustIdentity.Core" Version="1.0.2" />
<PackageReference Include="TrustIdentity.Core" />
paket add TrustIdentity.Core --version 1.0.2
#r "nuget: TrustIdentity.Core, 1.0.2"
#:package TrustIdentity.Core@1.0.2
#addin nuget:?package=TrustIdentity.Core&version=1.0.2
#tool nuget:?package=TrustIdentity.Core&version=1.0.2
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 validationAuthorizationCodeService- Authorization code managementRefreshTokenService- Refresh token handlingDeviceFlowService- Device authorization flowCibaService- Client-Initiated Backchannel AuthenticationTokenExchangeService- Token exchange (RFC 8693)DPoPService- Demonstrating Proof-of-PossessionMutualTlsService- Mutual TLS supportPushedAuthorizationService- PAR (RFC 9126)JwtSecuredAuthorizationService- JAR (RFC 9101)KeyManagementService- Automatic key rotation
Validators
ClientValidator- Client authenticationScopeValidator- Scope validationPkceValidator- PKCE validationAuthorizeRequestValidator- Authorization request validationTokenRequestValidator- Token request validation
Models
Client- OAuth/OIDC client configurationIdentityResource- OpenID Connect scopesApiScope- OAuth 2.0 scopesApiResource- 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 | 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
- MailKit (>= 4.14.1)
- Microsoft.AspNetCore.WebUtilities (>= 9.0.2)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Microsoft.Extensions.Logging (>= 10.0.0)
- Microsoft.IdentityModel.Tokens (>= 8.2.1)
- System.IdentityModel.Tokens.Jwt (>= 8.2.1)
- TrustIdentity.Abstractions (>= 1.0.2)
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.
- 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.