Authlink.Identity.Client.Core
3.7.0
dotnet add package Authlink.Identity.Client.Core --version 3.7.0
NuGet\Install-Package Authlink.Identity.Client.Core -Version 3.7.0
<PackageReference Include="Authlink.Identity.Client.Core" Version="3.7.0" />
<PackageVersion Include="Authlink.Identity.Client.Core" Version="3.7.0" />
<PackageReference Include="Authlink.Identity.Client.Core" />
paket add Authlink.Identity.Client.Core --version 3.7.0
#r "nuget: Authlink.Identity.Client.Core, 3.7.0"
#:package Authlink.Identity.Client.Core@3.7.0
#addin nuget:?package=Authlink.Identity.Client.Core&version=3.7.0
#tool nuget:?package=Authlink.Identity.Client.Core&version=3.7.0
Package Overview
Authlink.Identity.Client.Core is a low-level, dependency-free library that defines interfaces, data contracts, and shared models used by client SDKs that integrate with Authlink Identity.
It is intended to be consumed by higher-level packages such as:
Authlink.Identity.Client.Http
Install
dotnet add package Authlink.Identity.Client.Core
Or via Package Manager:
PM> Install-Package Authlink.Identity.Client.Core
Purpose
This package serves as a foundation layer, enabling:
- Abstraction of token and authentication flows
- Decoupled, testable client implementations
- Plug-and-play support across .NET environments (console, web, serverless)
- Rich error handling with detailed error information via
ErrorOr<T>
What's New in v3.6.0
- Added
DpopProoftoTokenRequestandTokenExchangeRequest(RFC 9449). Supported for theclient_credentialsand token-exchange grants; the issued token is bound to the proof key (cnf.jkt) andTokenTypeisDPoP. Every request needs a freshly signed proof, and the proof'shtumust equal the discoverytoken_endpoint.
What's New in v3.0.0
Token claims:
- Added
PurposetoTokenExchangeRequest. When permitted for the acting client, it is stamped as thepurposeclaim on the exchanged token. - Issued access tokens now additively carry a
tenantclaim (and apurposeclaim when declared and permitted).
Breaking changes — instance token exchange removed:
- Removed
RevokeInstanceAsyncand theRevokeInstanceRequestDTO. UseRevokeTokenAsync(RFC 7009) instead. - Removed
InstanceIdfromTokenExchangeRequest. Only standard RFC 8693 token exchange remains;TaskIdis retained and flows through as thetask_idclaim.
See CHANGELOG.md for full version history.
Error Handling
All methods return ErrorOr<T> for explicit error handling:
var result = await client.TokenAsync(request);
if (result.IsError)
{
var error = result.FirstError;
Console.WriteLine($"Error: {error.Code} - {error.Description}");
return;
}
var response = result.Value;
Console.WriteLine(response.AccessToken);
Error Types
HttpRequestFailed- HTTP errors with status codes and reason phrasesProtocolError- OAuth 2.0 / OIDC protocol errors from the serverNetworkError- Connection and network-related failuresOperationTimeout- Request timeout errorsOperationCancelled- Cancelled operationsDeserializationFailed- JSON parsing errors
Documentation
License
MIT
| 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
- ErrorOr (>= 2.0.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Authlink.Identity.Client.Core:
| Package | Downloads |
|---|---|
|
Authlink.Identity.Client.Http
System.Net implementation of the Authlink Identity client. |
|
|
Authlink.Auth.ServiceStack
A ServiceStack auth provider that is integrated with the Authlink Identity Provider |
|
|
Authlink.Policy.Client.Http
Implements the IPolicyClient abstraction over HTTP, allowing .NET applications to call Authlink’s Policy Decision Point (PDP) via a lightweight, HttpClientFactory-powered client. Includes PolicyHttpClient, option-based configuration (base URI, default client-ID, timeout), JSON (de)serialization of decision requests, and fail-closed error handling. Designed to plug into ASP.NET Core, ServiceStack, worker services, or any .NET runtime in combination with Authlink.Policy.Client.Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.7.0 | 83 | 11/17/2026 |
| 3.5.1 | 385 | 10/2/2026 |
| 3.5.0 | 2,673 | 8/31/2026 |
| 3.4.0 | 341 | 8/17/2026 |
| 3.3.0 | 369 | 7/31/2026 |
| 3.2.0 | 160 | 7/27/2026 |
| 3.1.0 | 155 | 7/24/2026 |
| 3.0.0 | 1,146 | 7/14/2026 |
| 2.4.0 | 1,708 | 5/20/2026 |
| 2.3.1 | 980 | 3/13/2026 |
| 2.3.0 | 202 | 3/10/2026 |
| 2.2.0 | 151 | 3/6/2026 |
| 2.1.0 | 209 | 2/18/2026 |
| 2.0.0 | 7,555 | 11/3/2025 |
| 1.0.0 | 257 | 10/10/2025 |