swashbuckle-dotnet-jwt-security

Configure JWT security schemes for Swagger UI in Jarvis .NET APIs.

12|2|Updated May 4, 2020
One-click install
npx skills add https://github.com/hoangnh2412/jarvis --skill swashbuckle-dotnet-jwt-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swashbuckle-dotnet-jwt-security
Source: https://github.com/hoangnh2412/jarvis/tree/main/.opencode/skills/swashbuckle-dotnet/providers/jwt-security
Command: npx skills add https://github.com/hoangnh2412/jarvis --skill swashbuckle-dotnet-jwt-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When building .NET APIs with JWT bearer authentication, developers must manually configure Swagger to support the Authorize button for testing protected endpoints, which is time-consuming and prone to configuration errors.

Core Features & Use Cases

  • Pre-configured JWT Security Scheme: Provides exact configuration settings for Jarvis.Swashbuckle to enable JWT authorization support out of the box.
  • Seamless Framework Integration: Works natively with Jarvis's JWT authentication module to ensure consistent token validation between the API and Swagger UI.
  • Use Case: For example, if you are developing a Jarvis-based .NET 9 API that uses JWT for protecting endpoints, this skill eliminates the need to write custom Swagger security configuration code from scratch.

Quick Start

Use the swashbuckle-dotnet-jwt-security skill to add JWT authorization support to your Jarvis API's Swagger UI.

Frequently Asked Questions about swashbuckle-dotnet-jwt-security

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

FAQPage Schema
How do I enable the Authorize button for JWT bearer authentication in Swagger UI for a .NET API?

You can enable JWT authorization in Swagger UI by applying pre-configured JWT security scheme settings to your Swashbuckle setup. This integrates Jarvis.Swashbuckle with Jarvis.Authentications.Jwt to render the Authorize button without writing custom configuration code.

What problem does manual JWT security configuration solve for Swagger UI in .NET?

Manual JWT security configuration solves the problem of Swagger UI not displaying the Authorize button for testing protected API endpoints. It ensures JWT tokens are consistently validated between the .NET API and Swagger interface during development.

Do I need to write custom Swagger security configuration code to test protected endpoints with JWT tokens?

No, you do not need to write custom Swagger security configuration code from scratch when using a Jarvis-based .NET API. This skill provides the exact Swashbuckle configuration settings to enable JWT authorization support out of the box.

Can I use this JWT Swagger configuration with any .NET API framework?

This JWT Swagger configuration is specifically designed for .NET APIs built with the Jarvis framework. It works natively with Jarvis's JWT authentication module to ensure consistent token validation.

Why is my Swagger UI not validating JWT tokens when testing protected endpoints?

Swagger UI fails to validate JWT tokens when the security scheme is not properly configured. Integrating Jarvis.Swashbuckle with Jarvis.Authentications.Jwt automatically renders the Authorize button and validates bearer tokens in Swagger requests.