GiviKDev.OAuth 0.3.0

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

GiviKDev.OAuth

OAuth 2.1 facade for ASP.NET Core. Proxies authorization, token, and registration requests to an upstream identity provider while serving AS metadata (RFC 8414) locally.

Quick Start

builder.Services.AddOAuth(opts =>
{
    opts.UpstreamAuthorizeEndpoint = "https://idp.example.com/authorize";
    opts.UpstreamTokenEndpoint = "https://idp.example.com/token";
    opts.ClientId = "my-client-id";
    opts.ScopesSupported = ["openid", "profile"];
});

app.MapOAuth();

What It Does

Endpoint Behaviour
/.well-known/oauth-authorization-server Serves AS metadata with local URLs
/authorize Redirects to upstream IdP
/token Proxies POST to upstream token endpoint
/register Returns pre-registered client_id (DCR facade)

Adapters

Use GiviKDev.OAuth.Entra for Microsoft Entra ID or GiviKDev.OAuth.Mcp for MCP server authentication.

License

MIT

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

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on GiviKDev.OAuth:

Package Downloads
GiviKDev.OAuth.Mcp

MCP integration for GiviKDev.OAuth — wires the OAuth facade with the MCP SDK's authentication handler and protected resource metadata.

GiviKDev.OAuth.Entra

Entra adapter for GiviKDev.OAuth — computes upstream URLs from tenant ID and strips the resource parameter.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 122 5/10/2026
0.2.1 116 5/10/2026
0.2.0 112 5/10/2026