JWTParser
JWT Parser – Create JWT Parser
Summary (SEO Meta Description):
The JWT Parser processor in WeHub decodes JSON Web Tokens and makes their payload available in workflows.
Configure schema and truncation options for secure token handling.
Overview
The Create JWT Parser action allows you to decode and inspect JSON Web Tokens (JWTs).
It extracts the header, payload, and signature, making claims available for workflow logic or validation.
This is useful for authentication, access control, and processing secure API calls.
⚙️ Configuration Options
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the node (e.g., "Parse Access Token"). | 
| Truncate Field | Boolean | Toggle to shorten large JWT claims or payload fields. | 
| Schema | Schema | Optional schema to validate the parsed JWT payload. | 
💡 Example Use Cases
- Authentication → Extract user claims (roles, IDs, permissions) from access tokens.
- Healthcare → Validate tokens from FHIR servers or API gateways.
- Ops → Decode JWTs from webhook calls for routing decisions.
FAQ
Q: Does this verify the JWT signature?
A: No, this action only decodes the token. Use a security or validation step for signature verification.
Q: What happens if the token is malformed?
A: The node fails with a parse error unless handled by workflow error management.
Q: Can I enforce claim validation?
A: Yes, by pairing with Schema Validator or a Rule Engine for business rules.
Keywords: WeHub JWT Parser, Create JWT Parser, decode JWT, token claims, authentication