-
Notifications
You must be signed in to change notification settings - Fork 58
doc: testing lambdas #2340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
doc: testing lambdas #2340
Changes from 28 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
3369ff5
testing lambdas
rideam 22bc130
update images
rideam b96dd83
update images
rideam 57f77cb
Testing lambdas language first edit
worktheclock 8300f43
Testing lambdas fix formatting
worktheclock 6020240
Merge pull request #107 from ritza-co/testing-lambdas-fix-formatting
worktheclock 59528fa
Merge pull request #106 from ritza-co/testing-lambdas-language-first-…
sixhobbits c7d93ea
add toc
rideam ef1e844
format limitations
rideam 763ce9c
Testing lambdas language edit
worktheclock 929d0bf
Merge pull request #108 from ritza-co/testing-lambdas-language-edit
sixhobbits 0c37be0
Apply suggestions from code review
sixhobbits 7025cf1
Titlecase headings
4ec789d
Moving lambda limitations into its own include file
eca331e
Using external code snippets
d941820
Using temporary users in the new repo
ad9e90b
Remove unusual line terminators from docsreadme file
2601ef5
Added new unit test for roles and permissions
69d177b
Given up trying to get remote tag includes to work in .md. And given …
14d0832
Make todo when moving to Astro
225c429
Add another todo for Astro
4e5b41a
Added description of linking and unlinking lambdas to applications
6da9b01
Merge branch 'master' into testing-lambdas
rideam 6617215
text updates
rideam 836aea2
Revised Testing Lambdas language edit
worktheclock 83502a8
Merge pull request #126 from ritza-co/revised-testing-lambdas-languag…
sixhobbits 4d78e18
fix json snippet tag causing text to render in red
rideam eea2f9b
remove TOC
rideam 720fb1c
Remove link and unlink lambdas from node cli
36d0544
"There are two ways to do this using Javascript"
a7621a2
Remove fusionauth.io absolute links
4eb6908
Moved JWt and User properties to JSON files in /docs/src/json
c6db7c8
Moved lambda article from customizations-testing to guides. And image…
6ff1b37
Converted tests 1 and 2 to separate files
32f181c
Add section explaining how to run all tests
bb72170
Finished article.
727bdb0
Use eval to run tests
54d3da4
Making security warning less dramatic
f5e7bff
include fixes and text updates
rideam 0a9a955
text updates
rideam a3f7d02
Lambda Guide language edit
worktheclock 88ff125
Merge pull request #133 from ritza-co/lambda-guide-language-edit
sixhobbits File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| == Limitations | ||
|
|
||
| If the Identity Provider linking strategy is set to `Link Anonymously`, no lambdas will be used by FusionAuth. More information about the link:/docs/v1/tech/identity-providers/#linking-strategies[Identity Provider linking strategies is available here]. | ||
|
|
||
| The FusionAuth lambdas do not have full access to JavaScript modules and libraries. They also cannot import, require or load other libraries currently. These features might be added to our lambda support in the future. | ||
|
|
||
| `console.log` and other `console` methods only take one argument; this differs from the `console` method available in web browsers. | ||
|
|
||
| === Lambda HTTP Connect Limitations | ||
|
|
||
| include::docs/v1/tech/shared/_advanced-edition-blurb.adoc[] | ||
|
|
||
| When using Lambda HTTP Connect to make HTTP requests, do not call a FusionAuth API which invokes the calling lambda, because it will fail. For example, in a JWT Populate lambda, do not invoke the Login API. | ||
|
|
||
| Requests from a lambda require the lambda to use the GraalJS engine. HTTP requests will time out after two seconds. | ||
|
|
||
| The `fetch` method in a lambda does not implement the https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API[entire `fetch` API] as implemented in a browser. | ||
| The first argument to `fetch` must always be a string URL. | ||
| Only the following options are supported: | ||
|
|
||
| * `method`, which defaults to `GET` | ||
| * `headers`, which defaults to null | ||
| * `body`, which must be a string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+146 KB
site/assets/img/docs/customization/lambdas/testing-lambdas/edit-application.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.8 KB
site/assets/img/docs/customization/lambdas/testing-lambdas/populate-lambda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65 KB
site/assets/img/docs/customization/lambdas/testing-lambdas/updated-lambda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO for Dan: update the lambda section of the limitations doc to include this.