Arc4u.OAuth2.Client.Authentication 9.0.0-preview43

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

Arc4u.OAuth2.Client.Authentication

Signs the user of a desktop or mobile .NET app in with OpenID Connect (Duende.IdentityModel.OidcClient) and sends the user's access token to the APIs the app calls.

Install

dotnet add package Arc4u.OAuth2.Client.Authentication --prerelease

Usage

builder.Services.AddOidcClientAuthentication(browser, loggerFactory, builder.Configuration);
builder.Services.AddKeyedSingleton<ITokenProvider, OidcClientIdentityModelTokenProvider>(OidcClientIdentityModelTokenProvider.TokenProviderName);

builder.Services.AddHttpClient<InventoryClient>()
    .AddHttpMessageHandler(sp => new JwtHttpHandler<InventoryClient>(sp,
        sp.GetRequiredService<ILogger<InventoryClient>>(),
        sp.GetRequiredService<IOptionsMonitor<SimpleKeyValueSettings>>().Get("OidcClient")));

AddOidcClientAuthentication reads the Authentication and Authentication:OidcClient.Settings sections; browser is your IBrowser implementation.

Documentation

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
9.0.0 61 11/10/2026
9.0.0-preview46 80 11/3/2026
9.0.0-preview45 85 11/2/2026
9.0.0-preview44 83 11/1/2026
9.0.0-preview43 80 11/1/2026
9.0.0-preview42 80 10/30/2026
9.0.0-preview41 83 10/30/2026
9.0.0-preview40 85 10/27/2026
9.0.0-preview39 84 10/24/2026
9.0.0-preview38 82 10/22/2026
9.0.0-preview37 109 8/11/2026
9.0.0-preview36 112 7/28/2026
9.0.0-preview35 95 7/27/2026
9.0.0-preview34 98 7/27/2026
9.0.0-preview33 112 6/15/2026
9.0.0-preview32 103 6/14/2026
9.0.0-preview31 109 5/20/2026
9.0.0-preview30 101 5/19/2026
9.0.0-preview29 99 5/15/2026
9.0.0-preview28 98 5/15/2026
Loading failed