Arc4u.OAuth2.Client.Authentication 9.0.0-preview41

Prefix Reserved
This is a prerelease version of Arc4u.OAuth2.Client.Authentication.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Arc4u.OAuth2.Client.Authentication --version 9.0.0-preview41
                    
NuGet\Install-Package Arc4u.OAuth2.Client.Authentication -Version 9.0.0-preview41
                    
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-preview41" />
                    
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-preview41" />
                    
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-preview41
                    
#r "nuget: Arc4u.OAuth2.Client.Authentication, 9.0.0-preview41"
                    
#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-preview41
                    
#: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-preview41&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Arc4u.OAuth2.Client.Authentication&version=9.0.0-preview41&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-preview46 51 11/3/2026
9.0.0-preview45 63 11/2/2026
9.0.0-preview44 61 11/1/2026
9.0.0-preview43 58 11/1/2026
9.0.0-preview42 58 10/30/2026
9.0.0-preview41 60 10/30/2026
9.0.0-preview40 62 10/27/2026
9.0.0-preview39 62 10/24/2026
9.0.0-preview38 59 10/22/2026
9.0.0-preview37 88 8/11/2026
9.0.0-preview36 91 7/28/2026
9.0.0-preview35 74 7/27/2026
9.0.0-preview34 77 7/27/2026
9.0.0-preview33 91 6/15/2026
9.0.0-preview32 82 6/14/2026
9.0.0-preview31 88 5/20/2026
9.0.0-preview30 80 5/19/2026
9.0.0-preview29 78 5/15/2026
9.0.0-preview28 77 5/15/2026
9.0.0-preview27 79 5/14/2026
Loading failed