auth-jwt

Verify and parse JWTs with jose and RS256 in Madoc TS.

57|15|Updated Nov 28, 2018
One-click install
npx skills add https://github.com/digirati-co-uk/madoc-platform --skill auth-jwt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-jwt
Source: https://github.com/digirati-co-uk/madoc-platform/tree/main/.agents/skills/auth-jwt
Command: npx skills add https://github.com/digirati-co-uk/madoc-platform --skill auth-jwt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Work on Madoc TS JWT parsing, verification, and service token behavior. Use when changing JWT payload handling, signature verification, or service JWT configuration in services/madoc-ts.

Core Features & Use Cases

  • JWT verification via jose and RS256
  • JWT parsing into application state, including service tokens
  • Service JWT configuration and scope management

Quick Start

Review and update the JWT parsing or verification logic in Madoc TS to align payload handling and service tokens.

Frequently Asked Questions about auth-jwt

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

FAQPage Schema
How do I verify a JWT signature using jose and RS256 in Madoc TS?

JWT signature verification in Madoc TS is handled via the jose library using the RS256 algorithm. This Skill configures the verification logic to validate tokens and parse claims into the application state securely.

How do I configure service tokens and manage scopes in madoc-ts.json?

Service token configuration and scope management in Madoc TS are defined within the madoc-ts.json file. This Skill applies changes to interpret service tokens and manage their access scopes across runtime scenarios.

How does Madoc TS parse JWT payloads into application state?

JWT parsing in Madoc TS extracts verified token payloads and maps them directly into the application state. This process ensures service tokens and user claims are correctly interpreted during runtime and deployment.

What is the best way to update JWT payload handling for Madoc TS deployment scenarios?

Updating JWT payload handling for Madoc TS deployments involves adjusting the parsing and verification logic to align with runtime requirements. This Skill ensures signature verification and service token interpretation function correctly across environments.

Do I need the jose library to handle JWT verification in Madoc TS?

Yes, the jose library is required for JWT verification in Madoc TS. It provides the RS256 signature validation capabilities needed to securely verify tokens before parsing them into the application state.