-
Notifications
You must be signed in to change notification settings - Fork 53
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
Workforce connector #125
base: master
Are you sure you want to change the base?
Workforce connector #125
Conversation
workato/connector_sdk#514 Status: Merged
{ | ||
multipart_form_boundary: multipart_form_boundary, | ||
multipart_form_parts: | ||
call(:extract_multipart_parts, { multipart_form_boundary: multipart_form_boundary, body: body }), |
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.
Style/BracesAroundHashParameters: Redundant curly braces around a hash parameter.
Metrics/LineLength: Line is too long. [115/80]
if code.to_i != 200 | ||
error("#{code}:#{body}") | ||
else | ||
multipart_form_boundary = "--#{call(:extract_multipart_boundary, headers)}" |
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.
Metrics/LineLength: Line is too long. [89/80]
'@xmlns:xsd' => 'http://services.workforcesoftware.com/xsd', | ||
'@xmlns:xsd1' => 'http://ws.apache.org/axis2/xsd', | ||
'@xmlns:xsd2' => 'http://data.service.webservices.workforcesoftware.com/xsd', | ||
strip_response_namespaces: true). |
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.
Layout/DotPosition: Place the . on the next line, together with the method name.
}] | ||
}] | ||
}]). | ||
headers('Content-Type': 'text/xml;charset=UTF-8'). |
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.
Layout/DotPosition: Place the . on the next line, together with the method name.
}] | ||
}] | ||
}] | ||
}]). |
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.
Layout/DotPosition: Place the . on the next line, together with the method name.
}] | ||
}] | ||
}]). | ||
headers('Content-Type': 'text/xml;charset=UTF-8'). |
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.
Layout/DotPosition: Place the . on the next line, together with the method name.
}] | ||
}] | ||
}] | ||
}]). |
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.
Layout/DotPosition: Place the . on the next line, together with the method name.
'@xmlns:wsu': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', | ||
'@soapenv:mustUnderstand': '1', | ||
'wsse:UsernameToken': [{ | ||
'@wsu:Id': 'UsernameToken-CBF92886ABADBFD1E715712314369112', |
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.
Metrics/LineLength: Line is too long. [84/80]
nonce = "#{now.to_i}workto" | ||
created_time = now.to_time.strftime('%Y-%m-%dT%H:%M:%SZ') | ||
password_digest = (nonce + created_time + connection['password']).sha1.encode_base64 | ||
post('/workforce/services/E2G_getBankBalances'). |
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.
Layout/DotPosition: Place the . on the next line, together with the method name.
execute: lambda do |connection, input| | ||
nonce = "#{now.to_i}workto" | ||
created_time = now.to_time.strftime('%Y-%m-%dT%H:%M:%SZ') | ||
password_digest = (nonce + created_time + connection['password']).sha1.encode_base64 |
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.
Metrics/LineLength: Line is too long. [92/80]
https://github.com/workato/connector_sdk/pull/514
Status: Merged
Authentication type
Actions