HTTP > Other modules
The ÃÛ¶¹ÊÓƵ Workfront Fusion HTTP app provides various modules for communication based on Hypertext Transfer Protocol (HTTP) protocol. HTTP is the foundation of data communication for the World Wide Web. You can use the modules to download web pages and files, call webhooks and API endpoints, and so on.
The right choice of the module depends on the authentication/ authorization mechanism the resource you want to access employs. The following are examples of modules
- Make a request:universal module primarily intended for resources not employing any type of authentication/ authorization
- Make a Basic Auth request:for resources employing HTTP Basic authentication (BA)
- Make a OAuth 2.0 request: for resources employing OAuth 2.0 authorization protocol
- Make a Client Certificate Auth request: for resources employing authorization protocol that requires a client-side certificate.
- Make an API Key authorization request: for resources employing API Keys for authorization.
Request modules
See the following articles for specific request module instructions:
Other action modules
Get a File
This action module downloads a file from the specified URL. After the file is downloaded, you can further process the file (map the file data) using other modules in the scenario.
Resolve a target URL
This action module resolves a chain of HTTP redirects and returns a target URL.
Iterator modules
Retrieve headers
This module returns each header (name and value) from the specified HTTP module in a separate bundle.
Generating JSON Web Tokens (JWT)
It is possible to generate a JWT token with the help of built-in functions:
Header:
Code for copy&paste:
{{replace(replace(replace(base64("{""alg"":""HS256"",""typ"":""JWT""}"); "/=/g"; emptystring); "/\+/g"; "-"); "/\//g"; "_")}}
Payload:
Code for copy&paste:
{{replace(replace(replace(base64("{""iss"":""key"",""exp"":" + (timestamp + 60) + "}"); "/=/g"; emptystring); "/\+/g"; "-"); "/\//g"; "_")}}
Token:
Code for copy&paste:
{{1.value}}.{{2.value}}.{{replace(replace(replace(sha256(1.value + "." + 2.value; "base64"; "secret"); "/=/g"; emptystring); "/\+/g"; "-"); "/\//g"; "_")}}