<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Lambda - Augment JWT with client_credentials&#x2F;M2M flow]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">We've recently started exploring the migration from Auth0 to FusionAuth, and I was wondering if there's a way to read the body of a request using a Lambda. In Auth0, the equivalent would be an Action with the onExecuteCredentialsExchange, which includes the <strong>event</strong> parameter that allows us to access the request body.</p>
<p dir="auto">I noticed that the client credentials Lambda structure in FusionAuth has four arguments: jwt, recipientEntity, targetEntities, and permissions. However, we need to augment the JWT claims with a value passed in the body of the client credentials grant request.</p>
<p dir="auto">Is there a way to achieve this?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2761/lambda-augment-jwt-with-client_credentials-m2m-flow</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 14:37:49 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2761.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Sep 2024 18:10:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Lambda - Augment JWT with client_credentials&#x2F;M2M flow on Thu, 12 Sep 2024 20:57:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/3212">@williamjeanmireault</a></p>
<p dir="auto">It sounds like you would like to be able to read <code>state</code> or similar in a lambda (we don't currently allow this)</p>
<p dir="auto">In a populate lambda, you do have access to</p>
<ul>
<li>Entity Data (<a href="https://fusionauth.io/docs/apis/entities/entities" rel="nofollow ugc">https://fusionauth.io/docs/apis/entities/entities</a>) (<code>entity.data</code>)<br />
This means that you can set any custom field you would like on your entity and use that in a populate worklfow</li>
<li>.fetch() <a href="https://fusionauth.io/docs/extend/code/lambdas/#using-lambda-http-connect" rel="nofollow ugc">https://fusionauth.io/docs/extend/code/lambdas/#using-lambda-http-connect</a></li>
</ul>
<p dir="auto">So you could access custom data attributes or call out to another system in the lambda</p>
<p dir="auto">If you have access to a support contract, you can also log a support ticket if you would like or open a feature request outlining your requirements<br />
<a href="https://fusionauth.io/docs/operate/troubleshooting/technical-support" rel="nofollow ugc">https://fusionauth.io/docs/operate/troubleshooting/technical-support</a></p>
]]></description><link>https://fusionauth.io/community/forum/post/7514</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7514</guid><dc:creator><![CDATA[joshua]]></dc:creator><pubDate>Thu, 12 Sep 2024 20:57:34 GMT</pubDate></item></channel></rss>