ClaudeSuperPower

token-management

Skill

Token management patterns using Duende.AccessTokenManagement. Covers client credential token caching, user token refresh, token storage, HttpClientFactory integration, DPoP support, and common configuration pitfalls. Also includes Blazor Server token management.

Install

git clone https://github.com/DuendeSoftware/duende-skills.git ~/.claude/skills/token-management

What is token-management?

Token management patterns using Duende.AccessTokenManagement. Covers client credential token caching, user token refresh, token storage, HttpClientFactory integration, DPoP support, and common configuration pitfalls. Also includes Blazor Server token management.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~66 tokens of context used while enabled, before you invoke anything

Documentation

README · ~15 min read

Token Management

When to Use This Skill

Use this skill when:

  • Building a .NET worker service or daemon that calls APIs using the client credentials flow
  • Building an ASP.NET Core web application that calls APIs on behalf of the currently logged-in user
  • Integrating Duende.AccessTokenManagement or Duende.AccessTokenManagement.OpenIdConnect with IHttpClientFactory
  • Configuring token caching — in-memory, distributed (Redis), or hybrid — for machine-to-machine tokens
  • Adding DPoP (Demonstrating Proof-of-Possession) key binding to access tokens
  • Implementing API-to-API delegation where a downstream service calls further APIs with either user tokens or client credentials
  • Revoking refresh tokens on user sign-out

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just skills.

Skillssimilar to this one

All skills