TrustIdentity.AdminApi 1.0.2

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

TrustIdentity.AdminApi

REST API for TrustIdentity administration


📦 Overview

TrustIdentity.AdminApi provides a RESTful API for managing TrustIdentity servers programmatically. It serves as the backend for the TrustIdentity.Cli and can be integrated into your own administrative workflows.


✨ Features

  • Client Management API - Full CRUD operations for OAuth2/OIDC clients
  • User Management API - Complete user administration, including lock/unlock and password resets
  • Resource Management API - Manage Identity and API resources/scopes
  • Session Management API - View and revoke active user sessions
  • Audit & Stats API - Access audit logs and server performance statistics
  • OpenAPI/Swagger - Interactive API documentation out of the box

🚀 Installation

Add the package to your web project:

dotnet add package TrustIdentity.AdminApi

🔧 Usage

Register the Admin API services in your Program.cs:

using TrustIdentity.AdminApi.Extensions;

var builder = WebApplication.CreateBuilder(args);

// Add TrustIdentity Core & Storage
builder.Services.AddTrustIdentity(...)
    .AddConfigurationStore(...)
    .AddOperationalStore(...);

// Add Admin API Controllers and Authorization Policies
builder.Services.AddTrustIdentityAdminApi();

var app = builder.Build();

app.UseAuthentication();
app.UseAuthorization();

app.MapControllers();

app.Run();

📋 API Endpoints

All endpoints are prefixed with /api/v1/admin.

Clients

  • GET /api/v1/admin/clients - List all clients
  • GET /api/v1/admin/clients/{id} - Get client details
  • POST /api/v1/admin/clients - Create a new client
  • PUT /api/v1/admin/clients/{id} - Update a client
  • DELETE /api/v1/admin/clients/{id} - Delete a client

Users

  • GET /api/v1/admin/users - List users (with search and pagination)
  • GET /api/v1/admin/users/{id} - Get user profile
  • POST /api/v1/admin/users - Create a user
  • PUT /api/v1/admin/users/{id} - Update user details
  • DELETE /api/v1/admin/users/{id} - Delete a user
  • POST /api/v1/admin/users/{id}/reset-password - Reset user password
  • POST /api/v1/admin/users/{id}/lock - Lock user account
  • POST /api/v1/admin/users/{id}/unlock - Unlock user account

Resources & Scopes

  • GET /api/v1/admin/resources/identity - List identity resources
  • GET /api/v1/admin/resources/api-resources - List API resources
  • GET /api/v1/admin/resources/api-scopes - List API scopes

System

  • GET /api/v1/admin/info - Connectivity check and version info
  • GET /api/v1/admin/stats - Server statistics and trends
  • GET /api/v1/admin/audit - Access audit logs

📄 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

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.2 99 2/5/2026
1.0.1 92 2/4/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.