Automatic access token management for interactive OpenIdConnect-based ASP.NET Core applications
Install
| Product | Versions |
|---|---|
| .NET |
README
About Duende.Labs.AccessTokenManagement
This directory contains a set of .NET libraries that manage OAuth and OpenId Connect access tokens. These tools automatically acquire new tokens when old tokens are about to expire, provide conveniences for using the current token with HTTP clients, and can revoke tokens that are no longer needed.
The code was imported from DuendeSoftware/foss so that
it can be iterated on in the labs monorepo. Namespaces are unchanged
(Duende.AccessTokenManagement and Duende.AccessTokenManagement.OpenIdConnect); only the
package identifiers carry the Duende.Labs. prefix.
Packages
Duende.Labs.AccessTokenManagementmanages tokens acquired in machine-to-machine flows in .NET workers and ASP.NET Core worker services.Duende.Labs.AccessTokenManagement.OpenIdConnectmanages tokens acquired in user-centric flows in ASP.NET Core applications.
Packages are versioned with the labs date-based scheme (YYYY.MMDD.RUN) and published from
.github/workflows/access-token-management-publish.yml.
Building and testing
dotnet run libs/access-token-management/build.cs
Individual targets:
dotnet run libs/access-token-management/build.cs -- release-build
dotnet run libs/access-token-management/build.cs -- test
dotnet run libs/access-token-management/build.cs -- coverage-report
Documentation
Documentation for the upstream libraries is available here.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.