JWT Decode

Description

This operation is used to decode JSON Web Tokens (JWTs). JWTs are commonly used for authentication and data exchange in web applications, and they consist of three parts:

  • Header - Encoded metadata about the token.

  • Payload - Encoded claims or data being transmitted.

  • Signature - A cryptographic signature to verify the token’s integrity.

This operation helps decode and inspect the header and payload of a JWT without verifying the signature.


Data types

These are the input/output expected data types for this operation:

Input data

- JWT string you want to decode.

Output data

- Decoded JWT strings


Example

Suppose you want to decode a series of events in the Base64 encoding scheme:

  1. In your Pipeline, open the required Action configuration and select the input Field.

  2. In the Operation field, choose JWT Decode.

  3. Give your Output field a name and click Save. The values in your input field will be decoded.

For example, the following JWT:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

will be decoded as:

{
    "sub": "1234567890",
    "name": "John Doe",
    "iat": 1516239022
}

You can try out operations with specific values using the Input field above the operation. You can enter the value in the example above and check the result in the Output field.

Last updated

Was this helpful?