Utility functions
Falafel provides a few utility function to aid with connector development.
Threadneedle
falafel.utils.threadneedle
smartSubstitution
falafel.utils.threadneedle.smartSubstitution
As of Threadneedle v1.11.0 and Falafel v1.25.0, the smartSubstitution
exposed by Threadneedle is included as part of Falafel’s utility functions. For documentation, see here.
Protected Service
falafel.utils.protectedService
validateRequestAgainstWhitelistedUrls
falafel.utils.protectedService.validateRequestAgainstWhitelistedUrls
If the service is protected and configured (which is derived from #auth_app
from params
), then this function will validate the request before allowing it to execute. The function accepts the same arguments as beforeRequest
.