FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    JWT Populate Lambda and Application properties

    Scheduled Pinned Locked Moved
    Q&A
    0
    3
    439
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      john.mooney
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua
        last edited by

        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.

        lamba_in_app-orginal.png

        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

        1 Reply Last reply Reply Quote 1
        • danD
          dan
          last edited by

          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.

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 1
          • First post
            Last post