Anarchy.Toolkit.Infrastructure.Http.Msal
1.0.0
dotnet add package Anarchy.Toolkit.Infrastructure.Http.Msal --version 1.0.0
NuGet\Install-Package Anarchy.Toolkit.Infrastructure.Http.Msal -Version 1.0.0
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Http.Msal" Version="1.0.0" />
<PackageVersion Include="Anarchy.Toolkit.Infrastructure.Http.Msal" Version="1.0.0" />
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Http.Msal" />
paket add Anarchy.Toolkit.Infrastructure.Http.Msal --version 1.0.0
#r "nuget: Anarchy.Toolkit.Infrastructure.Http.Msal, 1.0.0"
#:package Anarchy.Toolkit.Infrastructure.Http.Msal@1.0.0
#addin nuget:?package=Anarchy.Toolkit.Infrastructure.Http.Msal&version=1.0.0
#tool nuget:?package=Anarchy.Toolkit.Infrastructure.Http.Msal&version=1.0.0
Anarchy.Toolkit.Infrastructure.Http.Msal
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Infrastructure · Package catalog
Opt-in Microsoft Entra ID (MSAL) authentication for HTTP clients built on Anarchy.Toolkit.Infrastructure.Http.
dotnet add package Anarchy.Toolkit.Infrastructure.Http.Msal
MsalCertificateAuthenticationHandleracquires an OAuth 2.0 bearer token with certificate-based client credentials and adds it to every request.MsalCertificateHttpClientConfiguration<TClient>adds the handler on top of the common client configuration, driven byIMsalCertificateHttpAdapterSettings<TClient>.
When to use it
Use this package only when an adapter calls an API protected by Microsoft Entra ID with certificate credentials. It keeps
Microsoft.Identity.Client out of Infrastructure.Http for everyone else.
How to use it
- Implement
IMsalCertificateHttpAdapterSettings<TClient>with the client id, authority, scope and PEM certificate and private key. - Register
MsalCertificateHttpClientConfiguration<TClient>as you would anyHttpClientConfigurationBase<TClient>. - Handle
AccessTokenAcquisitionExceptionandCertificatePrivateKeyMissingExceptionat the adapter boundary as needed.
See the toolkit overview and architecture guide.
Releases
See the release notes for the complete release history.
| Product | Versions 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. |
-
net10.0
- Anarchy.Toolkit.Infrastructure.Http (>= 3.0.0)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Diagnostics (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Http (>= 10.0.15)
- Microsoft.Extensions.Logging (>= 10.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.15)
- Microsoft.Identity.Client (>= 4.92.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 47 | 11/27/2026 |
## Releases
### 1.0.0
- Extract the MSAL certificate authentication handler, its client configuration, settings and exceptions from `Infrastructure.Http`.