Authlink.Portal.Client.Core 2.2.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.2.0
                    
NuGet\Install-Package Authlink.Portal.Client.Core -Version 2.2.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.2.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.2.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.2.0
                    
#r "nuget: Authlink.Portal.Client.Core, 2.2.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.2.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.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Authlink.Portal.Client.Core&version=2.2.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

v2.2.0

New Features:

  • Added TenantId filtering parameter to GetUsersRequest for tenant-specific user queries
  • Added Status filtering parameter to GetUsersRequest for filtering users by status (Active, Inactive, Deleted)

Enhancements:

  • Enhanced user query capabilities with status-based filtering
  • Improved tenant-aware user retrieval

v2.1.0

New Features:

  • Added GetUserByEmailRequest and GetUserByEmailResponse for retrieving users by email address
  • Added GetUserByGovernmentIdRequest and GetUserByGovernmentIdResponse for retrieving users by government identifier
  • Updated IPortalClient interface with GetUserByEmailAsync and GetUserByGovernmentIdAsync methods

Enhancements:

  • Improved documentation for all request/response models

v2.0

Breaking Changes:

All IPortalClient methods now return ErrorOr<TResponse> instead of throwing exceptions:

// v1.x - Exception-based error handling
Task<UsersResponse> UsersAsync(UsersRequest request, CancellationToken cancellationToken = default);

// v2.0 - ErrorOr-based error handling
Task<ErrorOr<UsersResponse>> UsersAsync(UsersRequest request, CancellationToken cancellationToken = default);

New Error Handling:

The package now includes PortalClientErrors with predefined error factories for common scenarios:

  • HTTP request failures (with status codes and response bodies)
  • Not Found (404)
  • Validation failures (400)
  • Unauthorized (401)
  • Forbidden (403)
  • Conflict (409)
  • Deserialization errors
  • Network errors
  • Timeouts

All errors include rich metadata accessible via error.Metadata dictionary:

  • StatusCode - HTTP status code
  • ResponseBody - Server response content
  • RequestPath - The request path that failed
  • ExceptionType & ExceptionMessage - Exception details

📚 Documentation

https://docs.authlink.co.za

📄 License

MIT

Product 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. 
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
2.10.0 29 3/6/2026
2.9.0 109 2/18/2026
2.8.0 107 2/18/2026
2.7.0 117 1/30/2026
2.6.0 108 1/29/2026
2.5.0 112 1/29/2026
2.4.0 103 1/28/2026
2.3.0 120 1/7/2026
2.2.4 107 1/7/2026
2.2.3 114 1/7/2026
2.2.2 314 11/12/2025
2.2.1 248 11/10/2025
2.2.0 253 11/10/2025
2.1.0 216 11/4/2025
2.0.0 230 11/3/2025
1.0.1 212 10/29/2025
1.0.0 192 10/10/2025