MCPcopy
hub / github.com/TTLabs/EvaporateJS / authorizationMethod

Function authorizationMethod

test/auth.spec.js:512–529  ·  view source on GitHub ↗
(signParams, signHeaders, stringToSign, dateString)

Source from the content-addressed store, hash-verified

510 const data = {
511 Payload: '"' + this.payload + '"'
512 }
513 cb('', data)
514 }
515
516 let authorizationMethod = function (signParams, signHeaders, stringToSign, dateString) {
517 return new Promise(function(resolve, reject) {
518 new AWSLambda('abcdLambdaV2').invoke({
519 FunctionName: function () {},
520 InvocationType: 'RequestResponse',
521 Payload: JSON.stringify({
522 to_sign: stringToSign,
523 sign_params: signParams,
524 sign_headers: signHeaders
525 })
526 }, function (err, data) {
527 if (err) {
528 return reject(err);
529 }
530 resolve(JSON.parse(data.Payload));
531 });
532 });

Callers

nothing calls this directly

Calls 2

rejectFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected