I am using Azure Logic app serving a DialogFlow app. When the webhook communicates for an authorized user, it sends a payload with JWT token of the user and its details. What is the easiest way to decode the JWT token from within Logic App?
The JWT token contains user details that I wish to extract. I see libraries that are usable in node and c#. Is there any means from within Azure that can return me decoded JSON? There JWT is part of the JSON payload from the Webhook POST as below
"user": {
"lastSeen": "2019-01-18T03:20:47Z",
"idToken":##########JWTToken here#############",
"locale": "en-US",
"userId": "ABwppHExLpdPbT-LwqXEMzzN7UsdDYLsfdngTtcX-iiTpTgUUt1ZH-HFI4Ets2L3z275rqEVsRoIOmVWrMI"
},
All resources I researched like jwt.ms decode it within the browser environment. I hope there is a better way than writing an Azure Function to do it?