OAuth 1 Signer

Go to Product

This node allows to create OAuth-1-signed HTTP requests.

“OAuth provides a method for clients to access server resources on behalf of a resource owner (such as a different client or an end-user). It also provides a process for end-users to authorize third-party access to their server resources without sharing their credentials (typically, a username and password pair), using user-agent redirections.“ (see RFC5849)

The node itself does not perform any requests – this must be done with a connected “HTTP Retriever” node.

Supply this node with an input table which contains columns for the full request URLs (including query parameters, if they should be sent), (optionally) a column which denotes the HTTP method if different from GET (e.g. POST, etc.), and (optionally) further columns for further parameters from the request’s entity-body, which should be used for creating the signature (column name being the key, cell content the value). The last only applies, if:

  1. The request’s entity-body is single-part,
  2. The entity-body is encoded as application/x-www-form-urlencoded, and
  3. The request’s Content-Type HTTP header is set to application/x-www-form-urlencoded.

The node will append one column called Authorization which contains the created OAuth data. Select this column in the “HTTP Retriever” configuration in the “Headers” tab and make sure to configure the HTTP Retriever with the same data which you used for signing.

This node is implemented according to Twitter’s instructions, but can be used for general OAuth 1.0 signing purposes. More information about OAuth can be found here.

Options

Consumer key
The OAuth consumer key (required)
Consumer secret
The OAuth consumer secret (required)
Token
The OAuth token (optional)
Token secret
The OAuth token secret (optional)
URL
The input column which provides the URLs
HTTP method input
An input column which provides the HTTP methods (GET, POST, …). Leave empty to use GET.
Signature method
The OAuth signature method to use. The following signature methods are supported: HMAC-SHA1, HMAC-SHA256, HMAC-SHA512, and PLAINTEXT (this should only be used with encryption, i.e. https:!)
Additional Authorization params
Optional additional params which will be added to the end of the Authorization header (e.g. realm="foo").

Additional parameters

Parameter columns
Select string columns from the input table which should be considered as parameters when signing the request.

Input Ports

Icon
Table with URLs (and optional columns for HTTP method, and additional parameters).

Output Ports

Icon
Input table with appended “Authorization” column.

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.