Decode JWT Tokens With Dataweave and MuleSoft

Introduction

JWT stands for JSON Web Tokens and it represents the claims that needs to be securely transferred between two parties. It's a light weight, JSON-based, URL safe token and claim that is encoded as a JSON object which is digitally signed with a JSON Web Signature (JWS) and encrypted using JSON Web encryption (JWE).

JSON Web Token is Base64 encoded and it consists of three parts separated by the dots (.).