JWT Populate Lambda and Application properties
-
Hello I would like to be able to access the Application Properties in a JWT Populate Lambda.
I see JWT, User and Registration are parameters but is it possible to somehow get to the Application properties?
Thanks
-
Hi @john-mooney,
Based on the documentation, this does not look like a possibility.
https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate/#jwt-populate-lambda
However, I wondering if the
application
object is intentionally not available. Per the documentation, after the lambda is executed, the token is signed with those additional claims. At which point, the token is only then assigned to an application.Assigning the lambda
Once a lambda is created, you must assign it to an Application. See the JWT tab in the Application configuration.If you can provide more context around what you are trying to accomplish with your application, I might be able to offer a few more pointers or help you debug further.
Thanks,
Josh -
To add on to what @joshua was saying, we are pretty careful about what we make available in our lambda because performance is really important and we don't want to start loading a bunch of data that isn't required. That said, I understand the current lambda implementation isn't meeting your needs, however.
Two issues you may want to review, comment on and vote up:
https://github.com/FusionAuth/fusionauth-issues/issues/229
https://github.com/fusionauth/fusionauth-issues/issues/267
Both of these issues address your desired functionality in different ways.