Authlink.Portal.Client.Core 2.33.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Authlink.Portal.Client.Core --version 2.33.0
                    
NuGet\Install-Package Authlink.Portal.Client.Core -Version 2.33.0
                    
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="Authlink.Portal.Client.Core" Version="2.33.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Authlink.Portal.Client.Core" Version="2.33.0" />
                    
Directory.Packages.props
<PackageReference Include="Authlink.Portal.Client.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 Authlink.Portal.Client.Core --version 2.33.0
                    
#r "nuget: Authlink.Portal.Client.Core, 2.33.0"
                    
#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 Authlink.Portal.Client.Core@2.33.0
                    
#: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=Authlink.Portal.Client.Core&version=2.33.0
                    
Install as a Cake Addin
#tool nuget:?package=Authlink.Portal.Client.Core&version=2.33.0
                    
Install as a Cake Tool

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.26.0

Declarative permission provisioning — contracts for converging a resource server's access-control vocabulary (actions, resources, permissions, scaffolded roles, and inactive policy drafts) on deploy, plus design-time permission lookup:

Category Methods
Provisioning ApplyProvisioningAsync, GetProvisioningStateAsync, DismissProvisioningOrphanAsync
Catalog lookup GetPermissionByKeyAsync (existence + grant summary, no member identities)

Provisioning is additive and idempotent by design: entries are created or updated by key, never deleted, and nothing in the contracts can represent role membership, user assignment, or policy activation. PermissionListDto and RoleListDto now expose IsProvisioned.

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 check
  • GetAgentsAsync — non-paged list (all matching agents)
  • GetAgentsPagedAsync — renamed from GetAgentsAsync for 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

https://docs.authlink.co.za

License

MIT

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 (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
Loading failed