Has anyone had any success in accessing AWS S3 path-style request (https:<ama

Has anyone had any success in accessing AWS S3 path-style request (https:<amazon domain>/<path>) using Authorization (Access Key and Secret Access Key)?

I checked S3 documentation and bump into this: docs.aws.amazon.com/.../RESTAuthentication.html
Authorization = "AWS" + " " + AWSAccessKeyId + ":" + Signature;
Signature = Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign ) ) );
StringToSign = HTTP-Verb + "\
" +
          Content-MD5 + "\
" +
          Content-Type + "\
" +
          Date + "\
" +
          CanonicalizedAmzHeaders +
          CanonicalizedResource;

I'm looking for HMAC Sha-1 in the available functions in Cryptography functions to generate the SIGNATURE as stated above but to no success. Please advise.

OriginalPostID-173296

OriginalPostID-173296

  Discussion posts and replies are publicly visible

Parents
  • actually, i think I'm passing invalid value in the string to sign parameter in macsignature() - "GET"& char(10) & "" & char(10) & "" & char(10) & gmt(now()) & "<file path>" & ""

    Format: StringToSign = HTTP-Verb + "\
    " +
              Content-MD5 + "\
    " +
              Content-Type + "\
    " +
              Date + "\
    " +
              CanonicalizedAmzHeaders +
              CanonicalizedResource;

    Also, is there a function in appian to convert the value to UFT-8?
Reply
  • actually, i think I'm passing invalid value in the string to sign parameter in macsignature() - "GET"& char(10) & "" & char(10) & "" & char(10) & gmt(now()) & "<file path>" & ""

    Format: StringToSign = HTTP-Verb + "\
    " +
              Content-MD5 + "\
    " +
              Content-Type + "\
    " +
              Date + "\
    " +
              CanonicalizedAmzHeaders +
              CanonicalizedResource;

    Also, is there a function in appian to convert the value to UFT-8?
Children
No Data