Authlink.Identity.Client.Core 2.3.1

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

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 v2.3.0

Breaking Changes - Registration Link Flow:

  • Removed ValidateInvitationCodeRequest / ValidateInvitationCodeResponse - This endpoint no longer exists
  • Removed ValidateInvitationCodeAsync method from IIdentityClient

New Features - Two-Step Registration Link Validation:

  • Added VerifyRegistrationLinkRequest / VerifyRegistrationLinkResponse for verifying registration link tokens (Step 1)
  • Added ValidateRegistrationLinkRequest / ValidateRegistrationLinkResponse for validating tokens with invitation codes (Step 2)
  • Added VerifyRegistrationLinkAsync - Verify a registration link token and get recipient information
  • Added ValidateRegistrationLinkAsync - Validate a registration link with invitation code and create registration session

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 phrases
  • ProtocolError - OAuth 2.0 / OIDC protocol errors from the server
  • NetworkError - Connection and network-related failures
  • OperationTimeout - Request timeout errors
  • OperationCancelled - Cancelled operations
  • DeserializationFailed - JSON parsing errors

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 (2)

Showing the top 2 NuGet packages that depend on Authlink.Identity.Client.Core:

Package Downloads
Authlink.Auth.ServiceStack

A ServiceStack auth provider that is integrated with the Authlink Identity Provider

Authlink.Identity.Client.Http

System.Net implementation of the Authlink Identity client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.1 35 3/13/2026
2.3.0 51 3/10/2026
2.2.0 90 3/6/2026
2.1.0 139 2/18/2026
2.0.0 406 11/3/2025
1.0.0 211 10/10/2025