jwt_403_debug_expert

Diagnose Citadel APIM 401/403 failures by correlating requests and validating JWT claims.

5|2|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/aiappsgbb/awesome-gbb --skill jwt-403-debug-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jwt_403_debug_expert
Source: https://github.com/aiappsgbb/awesome-gbb/tree/main/skills/azure-sre-agent/references/plugins/gbb-citadel/skills/jwt_403_debug_expert
Command: npx skills add https://github.com/aiappsgbb/awesome-gbb --skill jwt-403-debug-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you quickly diagnose why Citadel API requests return 401/403 by inspecting request correlation data, analyzing JWT claims, and mapping the results to Access Contract scope and policy outcomes.

Core Features & Use Cases

  • Correlation ID driven triage: Locate the exact failing request in APIM diagnostics and extract the most relevant response metadata.
  • JWT claim validation (claims only): Verify audience, issuer, object identity, scope/roles, and expiration to form a precise technical hypothesis.
  • Access Contract root-cause mapping: Convert observed symptoms into likely causes (wrong audience, missing scope grant, expired MI token, missing subscription key, or policy denial) and recommend a single next fix plus a verification step.

Quick Start

Use the jwt_403_debug_expert skill to classify a Citadel gateway 401/403 for the correlation ID you provide and return one recommended fix and one verification step.

Frequently Asked Questions about jwt_403_debug_expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Citadel APIM gateway return a 403 error after onboarding?

A Citadel APIM gateway 403 error after onboarding often stems from an AI Citadel MI or Access Contract scope mismatch. Diagnosing the failing request correlation ID against APIM diagnostic entries and JWT claims isolates the exact authorization denial.

How do I debug a 401 Unauthorized response from an APIM routed request?

To debug a 401 Unauthorized response, extract the correlation ID, query read-only APIM diagnostics, and verify JWT claims like audience, issuer, and expiration against the expected Access Contract parameters.

How can I validate JWT claims against an Access Contract without checking signatures?

You can validate JWT claims against an Access Contract by inspecting only claims data such as audience, issuer, object identity, and scope/roles, matching them to contract expectations without handling token signatures.

Does diagnosing Citadel authorization failures require querying Log Analytics?

Diagnosing Citadel authorization failures requires read-only APIM and Log Analytics querying. Extracting the request correlation ID allows you to locate the exact failing request and map symptoms to root-cause hypotheses.

What is the best way to map APIM 401/403 symptoms to a specific root cause?

The best way to map APIM 401/403 symptoms to a root cause is using a deterministic mapping process that correlates JWT claim validation and APIM diagnostics to identify issues like wrong audience, missing scopes, or missing subscription keys.

When should I suspect a missing subscription key for an APIM authorization error?

You should suspect a missing subscription key for an APIM authorization error when JWT claims match the Access Contract but the APIM diagnostic logs indicate an authorization path failure at the gateway policy level.