ClaudeSuperPower

identity-testing-patterns

Skill

Testing patterns for IdentityServer-based systems including integration testing with WebApplicationFactory, mock token issuance, test authority configuration, protocol response validation, and end-to-end authentication flow testing.

Install

git clone https://github.com/DuendeSoftware/duende-skills.git ~/.claude/skills/identity-testing-patterns

What is identity-testing-patterns?

Testing patterns for IdentityServer-based systems including integration testing with WebApplicationFactory, mock token issuance, test authority configuration, protocol response validation, and end-to-end authentication flow testing.

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

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

Documentation

README · ~12 min read

Identity Testing Patterns

When to Use This Skill

Use this skill when:

  • Writing integration tests for applications that issue or validate tokens using Duende IdentityServer
  • Hosting IdentityServer in-memory with WebApplicationFactory<T> to test grant flows end-to-end
  • Creating mock JWT tokens for testing protected APIs without a live authority
  • Testing custom IProfileService implementations or claim transformation logic
  • Verifying IAuthorizationHandler and policy-based authorization against specific claim sets
  • Testing BFF endpoints that rely on cookie-based sessions and proxied API calls

Core Principles

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