Authlink.Portal.Client.Core
2.25.0
See the version list below for details.
dotnet add package Authlink.Portal.Client.Core --version 2.25.0
NuGet\Install-Package Authlink.Portal.Client.Core -Version 2.25.0
<PackageReference Include="Authlink.Portal.Client.Core" Version="2.25.0" />
<PackageVersion Include="Authlink.Portal.Client.Core" Version="2.25.0" />
<PackageReference Include="Authlink.Portal.Client.Core" />
paket add Authlink.Portal.Client.Core --version 2.25.0
#r "nuget: Authlink.Portal.Client.Core, 2.25.0"
#:package Authlink.Portal.Client.Core@2.25.0
#addin nuget:?package=Authlink.Portal.Client.Core&version=2.25.0
#tool nuget:?package=Authlink.Portal.Client.Core&version=2.25.0
Package Overview
Authlink.Portal.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 Portal.
It is intended to be consumed by higher-level packages such as:
Authlink.Portal.Client.Http
Install
dotnet add package Authlink.Portal.Client.Core
Or via Package Manager:
PM> Install-Package Authlink.Portal.Client.Core
Purpose
This package serves as a foundation layer, enabling:
- Type-safe error handling with
ErrorOr<T> - Comprehensive error information (HTTP status codes, response bodies, exception details)
- Decoupled, testable client implementations
- Plug-and-play support across .NET environments (console, web, serverless)
What's New in v2.24.0
Confidential client allowed purposes — a new method on IPortalClient for restricting the purposes a client may declare when requesting a token:
| Category | Methods |
|---|---|
| Allowed purposes | SetConfidentialClientAllowedPurposesAsync |
ConfidentialClientDto now exposes AllowedPurposes.
See CHANGELOG.md for full version history.
What's New in v2.22.0
API resource listing — 2 new methods on IPortalClient for listing API resources:
| Category | Methods |
|---|---|
| API resource listing | GetApiResourcesAsync (full list, no pagination), GetApiResourcesPagedAsync (paginated) |
New ApiResourceListDto DTO for list items, plus GetApiResourcesRequest / GetApiResourcesResponse and GetApiResourcesPagedRequest / GetApiResourcesPagedResponse contracts.
What's New in v2.21.0
API Resources & Access Control — 25 new methods on IPortalClient for API resource management, resource-scoped grants, and introspection:
| Category | Methods |
|---|---|
| API resource lifecycle | CreateApiResourceAsync, GetApiResourceAsync, UpdateApiResourceAsync, DeleteApiResourceAsync, ActivateApiResourceAsync, DeactivateApiResourceAsync, ValidateApiResourceIdentifierAsync |
| Confidential-client assignments | AddApiResourceConfidentialClientAsync, RemoveApiResourceConfidentialClientAsync, AddApiResourceConfidentialClientRoleAsync, RemoveApiResourceConfidentialClientRoleAsync, AddApiResourceConfidentialClientPermissionAsync, RemoveApiResourceConfidentialClientPermissionAsync, GetApiResourceConfidentialClientsAsync |
| User assignments | AddApiResourceUserAsync, RemoveApiResourceUserAsync, AddApiResourceUserRoleAsync, RemoveApiResourceUserRoleAsync, AddApiResourceUserPermissionAsync, RemoveApiResourceUserPermissionAsync, GetApiResourceUsersAsync, GetApiResourceUserAsync |
| Catalog & introspection | GetRolesAsync, GetPermissionsAsync (optional AudienceId scoping), GetEffectivePermissionsAsync |
New DTOs (ApiResourceDto, ApiResourceConfidentialClientListDto, ApiResourcePublicClientListDto, ApiResourceUserDto, ApiResourceUserListDto, TokenSettingsDto), enums (ApiResourceStatus, ApiResourceIncludes, PublicClientStatus, TokenLifetimeUnit), and an AudienceId field on PermissionListDto (null = global).
See CHANGELOG.md for full version history.
What's New in v2.20.0
Secretless Confidential Client Authentication — 11 new methods on IPortalClient for provisioning private_key_jwt and mTLS authentication:
| Category | Methods |
|---|---|
Public keys (private_key_jwt) |
AddConfidentialClientPublicKeyAsync, GetClientPublicKeysAsync, RevokeConfidentialClientPublicKeyAsync, RemoveConfidentialClientPublicKeyAsync |
| Certificates (mTLS) | AddConfidentialClientCertificateAsync, GetClientCertificateAsync, GetClientCertificatesAsync, ActivateConfidentialClientCertificateAsync, DeactivateConfidentialClientCertificateAsync, RemoveConfidentialClientCertificateAsync |
| mTLS requirement | SetConfidentialClientMtlsRequirementAsync |
New DTOs (ClientPublicKeyListDto, ClientCertificateDto, ClientCertificateListDto) and the ClientCertificateStatus enum.
See CHANGELOG.md for full version history.
What's New in v2.19.0
Confidential Client Management — 9 new methods on IPortalClient:
| Category | Methods |
|---|---|
| CRUD | CreateConfidentialClientAsync, GetConfidentialClientAsync, GetConfidentialClientsAsync, UpdateConfidentialClientAsync, DeleteConfidentialClientAsync |
| Lifecycle | ActivateConfidentialClientAsync, DeactivateConfidentialClientAsync |
| Secrets | AddConfidentialClientSecretAsync, RemoveConfidentialClientSecretAsync |
Agent Improvements:
AgentExistsAsync— lightweight existence checkGetAgentsAsync— non-paged list (all matching agents)GetAgentsPagedAsync— renamed fromGetAgentsAsyncfor clarity
Breaking Changes: Paged agents method renamed; delegator, policy, attribute, and rate limiting fields removed from agent DTOs. See CHANGELOG.md.
Error Handling
All methods return ErrorOr<T> for explicit error handling:
var result = await client.GetUsersAsync(request);
if (result.IsError)
{
var error = result.FirstError;
Console.WriteLine($"Error: {error.Code} - {error.Description}");
// Access metadata
if (error.Metadata.TryGetValue("StatusCode", out var statusCode))
{
Console.WriteLine($"HTTP Status: {statusCode}");
}
return;
}
var response = result.Value;
Error Types
The package includes PortalClientErrors with predefined error factories:
- HTTP request failures (with status codes and response bodies)
- Not Found (404)
- Validation failures (400)
- Unauthorized (401)
- Forbidden (403)
- Conflict (409)
- Network errors
- Timeouts
- Deserialization errors
Documentation
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- ErrorOr (>= 2.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Authlink.Portal.Client.Core:
| Package | Downloads |
|---|---|
|
Authlink.Portal.Client.Http
System.Net implementation of the Authlink Portal client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.3.0 | 358 | 11/17/2026 |
| 3.0.1 | 1,543 | 10/6/2026 |
| 3.0.0 | 125 | 10/6/2026 |
| 2.34.0 | 230 | 9/21/2026 |
| 2.33.0 | 120 | 9/21/2026 |
| 2.32.1 | 121 | 10/2/2026 |
| 2.32.0 | 939 | 9/16/2026 |
| 2.31.0 | 122 | 9/16/2026 |
| 2.30.0 | 308 | 9/14/2026 |
| 2.29.2 | 775 | 9/7/2026 |
| 2.29.1 | 146 | 9/7/2026 |
| 2.29.0 | 362 | 8/31/2026 |
| 2.28.0 | 135 | 8/31/2026 |
| 2.27.0 | 194 | 8/21/2026 |
| 2.26.1 | 336 | 8/14/2026 |
| 2.26.0 | 142 | 8/11/2026 |
| 2.25.2 | 159 | 7/22/2026 |
| 2.25.0 | 169 | 7/15/2026 |
| 2.24.0 | 154 | 7/14/2026 |
| 2.23.1 | 593 | 7/2/2026 |