Currently, Azure Logic Apps do not have built-in functions specifically for manipulating or validating JSON Web Tokens (JWTs). However, you can achieve JWT-related tasks by leveraging other Azure services or creating custom logic within your app.
1. Validation and Parsing: You can use Azure API Management to validate JWT tokens by applying the Validate JWT Access Restriction Policy. This policy checks the existence and validity of a JWT token, ensuring that only authorized requests reach your Logic App[3].
2. Custom Logic: To parse JWT tokens directly within Logic Apps, you can create a child Logic App that handles the parsing. This involves using expressions to split and decode the token, then parsing the JSON payload to extract user details[5][7].
3. Integration with Azure Functions: For more complex JWT manipulation, consider integrating your Logic App with Azure Functions. Azure Functions can handle custom code for JWT validation and manipulation using libraries like `JwtSecurityTokenHandler` in .NET[4].
In summary, while there are no native JWT manipulation functions in Logic Apps, you can use a combination of Azure services and custom logic to achieve similar outcomes.
Citations:
[1] https://microsoft.github.io/Azure-Threat-Research-Matrix/CredentialAccess/AZT601/AZT601-3/
[2] https://auth0.com/blog/how-to-validate-jwt-dotnet/
[3] https://techcommunity.microsoft.com/blog/azuredevcommunityblog/part-4-secure-your-logic-app-using-api-management-8211-validate-jwt-access-restr/336802
[4] https://stackoverflow.com/questions/49162583/using-json-web-tokens-jwt-with-azure-functions-without-using-active-directory
[5] https://autosysops.com/blog/parse-jwt-tokens-in-azure-logic-apps
[6] https://webjose.hashnode.dev/invalidating-json-web-tokens-jwt-nodejs-express
[7] https://stackoverflow.com/questions/54257879/how-to-decode-a-jwt-token-in-azure-logic-app
[8] https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference
[9] https://www.reddit.com/r/AZURE/comments/u4alct/blog_parse_jwt_token_with_azure_logic_apps/