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

Kickstart and lambdas and newlines

Scheduled Pinned Locked Moved
Q&A
kickstart lambda
1
2
1.1k
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.
  • D
    dan
    last edited by 15 Jul 2020, 17:09

    I'm using kickstart to set up my FusionAuth instances.

    Only issue i ran into was posting a lambda body. looks like FusionAuth does some ‘\n’ replacement in the kickstart process. The lambdas created using kickstart have newlines stripped.

    Creating a lambda using the API (post for example) works fine, (respects newlines). The lambda appears to work, so this isn't a critical issue.

    But is there a way to preserve newlines?

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

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 15 Jul 2020, 17:10

      Can you use an include for the function body? For example: (where myLambda.ftl is your Lambda function in a folder named lambdas)

      "lambda":{
         "body":  "@{lambdas/myLambda.ftl}",
      }
      

      That should preserve your line returns if you include it that way. Hope that helps!

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

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post