Arc4u.OAuth2.AspNetCore 9.0.0-preview39

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

Arc4u.OAuth2.AspNetCore

Creates the Arc4u principal of authenticated ASP.NET Core requests and provides the server-side authentication middlewares: forced OpenID Connect sign-in, Basic credentials, bearer injection and resource rights.

Install

dotnet add package Arc4u.OAuth2.AspNetCore --prerelease

Usage

using Arc4u.OAuth2;
using Arc4u.OAuth2.Middleware;
using Microsoft.AspNetCore.Authentication;

builder.Services.AddScoped<IClaimsTransformation, AppPrincipalTransform>();
builder.Services.AddForceOpenId(builder.Configuration);
// ...
app.UseAuthentication();
app.UseForceOpenId();

AppPrincipalTransform turns the authenticated user into an AppPrincipal; AddForceOpenId reads Authentication:ClaimsMiddleWare:ForceOpenId.

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

Showing the top 1 NuGet packages that depend on Arc4u.OAuth2.AspNetCore:

Package Downloads
Arc4u.OAuth2.AspNetCore.Authentication

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.0-preview39 42 10/24/2026
9.0.0-preview38 87 10/22/2026
9.0.0-preview37 538 8/11/2026
9.0.0-preview36 389 7/28/2026
9.0.0-preview35 78 7/27/2026
9.0.0-preview34 86 7/27/2026
9.0.0-preview33 111 6/15/2026
9.0.0-preview32 90 6/14/2026
9.0.0-preview31 89 5/20/2026
9.0.0-preview30 86 5/19/2026
9.0.0-preview29 94 5/15/2026
9.0.0-preview28 93 5/15/2026
9.0.0-preview27 83 5/14/2026
9.0.0-preview26 90 5/14/2026
9.0.0-preview25 85 5/13/2026
9.0.0-preview24 81 5/6/2026
9.0.0-preview23 107 3/19/2026
9.0.0-preview22 90 3/18/2026
9.0.0-preview21 102 3/8/2026
9.0.0-preview20 114 2/11/2026
Loading failed