Authlink.Identity.Client.Core
2.3.0
See the version list below for details.
dotnet add package Authlink.Identity.Client.Core --version 2.3.0
NuGet\Install-Package Authlink.Identity.Client.Core -Version 2.3.0
<PackageReference Include="Authlink.Identity.Client.Core" Version="2.3.0" />
<PackageVersion Include="Authlink.Identity.Client.Core" Version="2.3.0" />
<PackageReference Include="Authlink.Identity.Client.Core" />
paket add Authlink.Identity.Client.Core --version 2.3.0
#r "nuget: Authlink.Identity.Client.Core, 2.3.0"
#:package Authlink.Identity.Client.Core@2.3.0
#addin nuget:?package=Authlink.Identity.Client.Core&version=2.3.0
#tool nuget:?package=Authlink.Identity.Client.Core&version=2.3.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 v2.3.0
Breaking Changes - Registration Link Flow:
- Removed
ValidateInvitationCodeRequest/ValidateInvitationCodeResponse- This endpoint no longer exists - Removed
ValidateInvitationCodeAsyncmethod fromIIdentityClient
New Features - Two-Step Registration Link Validation:
- Added
VerifyRegistrationLinkRequest/VerifyRegistrationLinkResponsefor verifying registration link tokens (Step 1) - Added
ValidateRegistrationLinkRequest/ValidateRegistrationLinkResponsefor 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 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 | 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 (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.