Net-Amazon-Signature-V4-0.21/0000755000175000017500000000000013737717266015256 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/README0000644000175000017500000000547513737717110016135 0ustar grinnzgrinnzNAME Net::Amazon::Signature::V4 - Implements the Amazon Web Services signature version 4, AWS4-HMAC-SHA256 VERSION Version 0.21 SYNOPSIS use Net::Amazon::Signature::V4; my $sig = Net::Amazon::Signature::V4->new( $access_key_id, $secret, $endpoint, $service ); my $req = HTTP::Request->parse( $request_string ); my $signed_req = $sig->sign( $req ); ... DESCRIPTION This module signs an HTTP::Request to Amazon Web Services by appending an Authorization header. Amazon Web Services signature version 4, AWS4-HMAC-SHA256, is used. The primary purpose of this module is to be used by Net::Amazon::Glacier. METHODS new my $sig = Net::Amazon::Signature::V4->new( $access_key_id, $secret, $endpoint, $service ); my $sig = Net::Amazon::Signature::V4->new({ access_key_id => $access_key_id, secret => $secret, endpoint => $endpoint, service => $service, }); Constructs the signature object, which is used to sign requests. Note that the access key ID is an alphanumeric string, not your account ID. The endpoint could be "eu-west-1", and the service could be "glacier". Since version 0.20, parameters can be passed in a hashref. The keys "access_key_id", "secret", "endpoint", and "service" are required. "security_token", if passed, will be applied to each signed request as the "X-Amz-Security-Token" header. sign my $signed_request = $sig->sign( $request ); Signs a request with your credentials by appending the Authorization header. $request should be an HTTP::Request. The signed request is returned. AUTHOR Tim Nordenfur, "" Maintained by Dan Book, "" BUGS Please report any bugs or feature requests to "bug-Net-Amazon-Signature-V4 at rt.cpan.org", or through the web interface at . I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT You can find documentation for this module with the perldoc command. perldoc Net::Amazon::Signature::V4 You can also look for information at: * RT: CPAN's request tracker (report bugs here) * Source on GitHub * Search CPAN LICENSE AND COPYRIGHT This software is copyright (c) 2012 by Tim Nordenfur. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Net-Amazon-Signature-V4-0.21/MANIFEST0000644000175000017500000001573413737717266016421 0ustar grinnzgrinnzChanges lib/Net/Amazon/Signature/V4.pm LICENSE Makefile.PL MANIFEST This list of files README t/00-load.t t/10-aws-tests.t t/aws4_testsuite/get-header-key-duplicate.authz t/aws4_testsuite/get-header-key-duplicate.creq t/aws4_testsuite/get-header-key-duplicate.req t/aws4_testsuite/get-header-key-duplicate.sreq t/aws4_testsuite/get-header-key-duplicate.sts t/aws4_testsuite/get-header-value-multiline.req t/aws4_testsuite/get-header-value-order.authz t/aws4_testsuite/get-header-value-order.creq t/aws4_testsuite/get-header-value-order.req t/aws4_testsuite/get-header-value-order.sreq t/aws4_testsuite/get-header-value-order.sts t/aws4_testsuite/get-header-value-trim.authz t/aws4_testsuite/get-header-value-trim.creq t/aws4_testsuite/get-header-value-trim.req t/aws4_testsuite/get-header-value-trim.sreq t/aws4_testsuite/get-header-value-trim.sts t/aws4_testsuite/get-relative-relative.authz t/aws4_testsuite/get-relative-relative.creq t/aws4_testsuite/get-relative-relative.req t/aws4_testsuite/get-relative-relative.sreq t/aws4_testsuite/get-relative-relative.sts t/aws4_testsuite/get-relative.authz t/aws4_testsuite/get-relative.creq t/aws4_testsuite/get-relative.req t/aws4_testsuite/get-relative.sreq t/aws4_testsuite/get-relative.sts t/aws4_testsuite/get-slash-dot-slash.authz t/aws4_testsuite/get-slash-dot-slash.creq t/aws4_testsuite/get-slash-dot-slash.req t/aws4_testsuite/get-slash-dot-slash.sreq t/aws4_testsuite/get-slash-dot-slash.sts t/aws4_testsuite/get-slash-pointless-dot.authz t/aws4_testsuite/get-slash-pointless-dot.creq t/aws4_testsuite/get-slash-pointless-dot.req t/aws4_testsuite/get-slash-pointless-dot.sreq t/aws4_testsuite/get-slash-pointless-dot.sts t/aws4_testsuite/get-slash.authz t/aws4_testsuite/get-slash.creq t/aws4_testsuite/get-slash.req t/aws4_testsuite/get-slash.sreq t/aws4_testsuite/get-slash.sts t/aws4_testsuite/get-slashes.authz t/aws4_testsuite/get-slashes.creq t/aws4_testsuite/get-slashes.req t/aws4_testsuite/get-slashes.sreq t/aws4_testsuite/get-slashes.sts t/aws4_testsuite/get-space.authz t/aws4_testsuite/get-space.creq t/aws4_testsuite/get-space.req t/aws4_testsuite/get-space.sreq t/aws4_testsuite/get-space.sts t/aws4_testsuite/get-unreserved.authz t/aws4_testsuite/get-unreserved.creq t/aws4_testsuite/get-unreserved.req t/aws4_testsuite/get-unreserved.sreq t/aws4_testsuite/get-unreserved.sts t/aws4_testsuite/get-utf8.authz t/aws4_testsuite/get-utf8.creq t/aws4_testsuite/get-utf8.req t/aws4_testsuite/get-utf8.sreq t/aws4_testsuite/get-utf8.sts t/aws4_testsuite/get-vanilla-empty-query-key.authz t/aws4_testsuite/get-vanilla-empty-query-key.creq t/aws4_testsuite/get-vanilla-empty-query-key.req t/aws4_testsuite/get-vanilla-empty-query-key.sreq t/aws4_testsuite/get-vanilla-empty-query-key.sts t/aws4_testsuite/get-vanilla-query-order-key-case.authz t/aws4_testsuite/get-vanilla-query-order-key-case.creq t/aws4_testsuite/get-vanilla-query-order-key-case.req t/aws4_testsuite/get-vanilla-query-order-key-case.sreq t/aws4_testsuite/get-vanilla-query-order-key-case.sts t/aws4_testsuite/get-vanilla-query-order-key.authz t/aws4_testsuite/get-vanilla-query-order-key.creq t/aws4_testsuite/get-vanilla-query-order-key.req t/aws4_testsuite/get-vanilla-query-order-key.sreq t/aws4_testsuite/get-vanilla-query-order-key.sts t/aws4_testsuite/get-vanilla-query-order-value.authz t/aws4_testsuite/get-vanilla-query-order-value.creq t/aws4_testsuite/get-vanilla-query-order-value.req t/aws4_testsuite/get-vanilla-query-order-value.sreq t/aws4_testsuite/get-vanilla-query-order-value.sts t/aws4_testsuite/get-vanilla-query-unreserved.authz t/aws4_testsuite/get-vanilla-query-unreserved.creq t/aws4_testsuite/get-vanilla-query-unreserved.req t/aws4_testsuite/get-vanilla-query-unreserved.sreq t/aws4_testsuite/get-vanilla-query-unreserved.sts t/aws4_testsuite/get-vanilla-query.authz t/aws4_testsuite/get-vanilla-query.creq t/aws4_testsuite/get-vanilla-query.req t/aws4_testsuite/get-vanilla-query.sreq t/aws4_testsuite/get-vanilla-query.sts t/aws4_testsuite/get-vanilla-ut8-query.authz t/aws4_testsuite/get-vanilla-ut8-query.creq t/aws4_testsuite/get-vanilla-ut8-query.req t/aws4_testsuite/get-vanilla-ut8-query.sreq t/aws4_testsuite/get-vanilla-ut8-query.sts t/aws4_testsuite/get-vanilla.authz t/aws4_testsuite/get-vanilla.creq t/aws4_testsuite/get-vanilla.req t/aws4_testsuite/get-vanilla.sreq t/aws4_testsuite/get-vanilla.sts t/aws4_testsuite/get-zero.authz t/aws4_testsuite/get-zero.creq t/aws4_testsuite/get-zero.req t/aws4_testsuite/get-zero.sreq t/aws4_testsuite/get-zero.sts t/aws4_testsuite/post-header-key-case.authz t/aws4_testsuite/post-header-key-case.creq t/aws4_testsuite/post-header-key-case.req t/aws4_testsuite/post-header-key-case.sreq t/aws4_testsuite/post-header-key-case.sts t/aws4_testsuite/post-header-key-sort.authz t/aws4_testsuite/post-header-key-sort.creq t/aws4_testsuite/post-header-key-sort.req t/aws4_testsuite/post-header-key-sort.sreq t/aws4_testsuite/post-header-key-sort.sts t/aws4_testsuite/post-header-value-case.authz t/aws4_testsuite/post-header-value-case.creq t/aws4_testsuite/post-header-value-case.req t/aws4_testsuite/post-header-value-case.sreq t/aws4_testsuite/post-header-value-case.sts t/aws4_testsuite/post-vanilla-empty-query-value.authz t/aws4_testsuite/post-vanilla-empty-query-value.creq t/aws4_testsuite/post-vanilla-empty-query-value.req t/aws4_testsuite/post-vanilla-empty-query-value.sreq t/aws4_testsuite/post-vanilla-empty-query-value.sts t/aws4_testsuite/post-vanilla-query-nonunreserved.authz t/aws4_testsuite/post-vanilla-query-nonunreserved.creq t/aws4_testsuite/post-vanilla-query-nonunreserved.req t/aws4_testsuite/post-vanilla-query-nonunreserved.sreq t/aws4_testsuite/post-vanilla-query-nonunreserved.sts t/aws4_testsuite/post-vanilla-query-space.authz t/aws4_testsuite/post-vanilla-query-space.creq t/aws4_testsuite/post-vanilla-query-space.req t/aws4_testsuite/post-vanilla-query-space.sreq t/aws4_testsuite/post-vanilla-query-space.sts t/aws4_testsuite/post-vanilla-query.authz t/aws4_testsuite/post-vanilla-query.creq t/aws4_testsuite/post-vanilla-query.req t/aws4_testsuite/post-vanilla-query.sreq t/aws4_testsuite/post-vanilla-query.sts t/aws4_testsuite/post-vanilla.authz t/aws4_testsuite/post-vanilla.creq t/aws4_testsuite/post-vanilla.req t/aws4_testsuite/post-vanilla.sreq t/aws4_testsuite/post-vanilla.sts t/aws4_testsuite/post-x-www-form-urlencoded-parameters.authz t/aws4_testsuite/post-x-www-form-urlencoded-parameters.creq t/aws4_testsuite/post-x-www-form-urlencoded-parameters.req t/aws4_testsuite/post-x-www-form-urlencoded-parameters.sreq t/aws4_testsuite/post-x-www-form-urlencoded-parameters.sts t/aws4_testsuite/post-x-www-form-urlencoded.authz t/aws4_testsuite/post-x-www-form-urlencoded.creq t/aws4_testsuite/post-x-www-form-urlencoded.req t/aws4_testsuite/post-x-www-form-urlencoded.sreq t/aws4_testsuite/post-x-www-form-urlencoded.sts xt/author/boilerplate.t xt/author/pod-coverage.t xt/author/pod.t xt/release/manifest.t META.yml Module YAML meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) Net-Amazon-Signature-V4-0.21/lib/0000755000175000017500000000000013737717266016024 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/lib/Net/0000755000175000017500000000000013737717266016552 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/lib/Net/Amazon/0000755000175000017500000000000013737717266017777 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/lib/Net/Amazon/Signature/0000755000175000017500000000000013737717266021740 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/lib/Net/Amazon/Signature/V4.pm0000644000175000017500000002120413737717073022562 0ustar grinnzgrinnzpackage Net::Amazon::Signature::V4; use strict; use warnings; use sort 'stable'; use Digest::SHA qw/sha256_hex hmac_sha256 hmac_sha256_hex/; use Time::Piece (); use URI::Escape; our $ALGORITHM = 'AWS4-HMAC-SHA256'; =head1 NAME Net::Amazon::Signature::V4 - Implements the Amazon Web Services signature version 4, AWS4-HMAC-SHA256 =head1 VERSION Version 0.21 =cut our $VERSION = '0.21'; =head1 SYNOPSIS use Net::Amazon::Signature::V4; my $sig = Net::Amazon::Signature::V4->new( $access_key_id, $secret, $endpoint, $service ); my $req = HTTP::Request->parse( $request_string ); my $signed_req = $sig->sign( $req ); ... =head1 DESCRIPTION This module signs an HTTP::Request to Amazon Web Services by appending an Authorization header. Amazon Web Services signature version 4, AWS4-HMAC-SHA256, is used. The primary purpose of this module is to be used by Net::Amazon::Glacier. =head1 METHODS =head2 new my $sig = Net::Amazon::Signature::V4->new( $access_key_id, $secret, $endpoint, $service ); my $sig = Net::Amazon::Signature::V4->new({ access_key_id => $access_key_id, secret => $secret, endpoint => $endpoint, service => $service, }); Constructs the signature object, which is used to sign requests. Note that the access key ID is an alphanumeric string, not your account ID. The endpoint could be "eu-west-1", and the service could be "glacier". Since version 0.20, parameters can be passed in a hashref. The keys C, C, C, and C are required. C, if passed, will be applied to each signed request as the C header. =cut sub new { my $class = shift; my $self = {}; if (@_ == 1 and ref $_[0] eq 'HASH') { @$self{keys %{$_[0]}} = values %{$_[0]}; } else { @$self{qw(access_key_id secret endpoint service)} = @_; } # The URI should not be double escaped for the S3 service $self->{no_escape_uri} = ( lc($self->{service}) eq 's3' ) ? 1 : 0; bless $self, $class; return $self; } =head2 sign my $signed_request = $sig->sign( $request ); Signs a request with your credentials by appending the Authorization header. $request should be an HTTP::Request. The signed request is returned. =cut sub sign { my ( $self, $request ) = @_; my $authz = $self->_authorization( $request ); $request->header( Authorization => $authz ); return $request; } # _headers_to_sign: # Return the sorted lower case headers as required by the generation of canonical headers sub _headers_to_sign { my $req = shift; return sort { $a cmp $b } map { lc } $req->headers->header_field_names; } # _canonical_request: # Construct the canonical request string from an HTTP::Request. sub _canonical_request { my ( $self, $req ) = @_; my $creq_method = $req->method; my ( $creq_canonical_uri, $creq_canonical_query_string ) = ( $req->uri =~ m@([^?]*)\?(.*)$@ ) ? ( $1, $2 ) : ( $req->uri, '' ); $creq_canonical_uri =~ s@^https?://[^/]*/?@/@; $creq_canonical_uri = $self->_simplify_uri( $creq_canonical_uri ); $creq_canonical_query_string = _sort_query_string( $creq_canonical_query_string ); # Ensure Host header is present as its required if (!$req->header('host')) { my $host = $req->uri->_port ? $req->uri->host_port : $req->uri->host; $req->header('Host' => $host); } my $creq_payload_hash = $req->header('x-amz-content-sha256'); if (!$creq_payload_hash) { $creq_payload_hash = sha256_hex($req->content); # X-Amz-Content-Sha256 must be specified now $req->header('X-Amz-Content-Sha256' => $creq_payload_hash); } # There's a bug in AMS4 which causes requests without x-amz-date set to be rejected # so we always add one if its not present. my $amz_date = $req->header('x-amz-date'); if (!$amz_date) { $req->header('X-Amz-Date' => _req_timepiece($req)->strftime('%Y%m%dT%H%M%SZ')); } if (defined $self->{security_token} and !defined $req->header('X-Amz-Security-Token')) { $req->header('X-Amz-Security-Token' => $self->{security_token}); } my @sorted_headers = _headers_to_sign( $req ); my $creq_canonical_headers = join '', map { sprintf "%s:%s\x0a", lc, join ',', sort {$a cmp $b } _trim_whitespace($req->header($_) ) } @sorted_headers; my $creq_signed_headers = join ';', map {lc} @sorted_headers; my $creq = join "\x0a", $creq_method, $creq_canonical_uri, $creq_canonical_query_string, $creq_canonical_headers, $creq_signed_headers, $creq_payload_hash; return $creq; } # _string_to_sign # Construct the string to sign. sub _string_to_sign { my ( $self, $req ) = @_; my $dt = _req_timepiece( $req ); my $creq = $self->_canonical_request($req); my $sts_request_date = $dt->strftime( '%Y%m%dT%H%M%SZ' ); my $sts_credential_scope = join '/', $dt->strftime('%Y%m%d'), $self->{endpoint}, $self->{service}, 'aws4_request'; my $sts_creq_hash = sha256_hex( $creq ); my $sts = join "\x0a", $ALGORITHM, $sts_request_date, $sts_credential_scope, $sts_creq_hash; return $sts; } # _authorization # Construct the authorization string sub _authorization { my ( $self, $req ) = @_; my $dt = _req_timepiece( $req ); my $sts = $self->_string_to_sign( $req ); my $k_date = hmac_sha256( $dt->strftime('%Y%m%d'), 'AWS4' . $self->{secret} ); my $k_region = hmac_sha256( $self->{endpoint}, $k_date ); my $k_service = hmac_sha256( $self->{service}, $k_region ); my $k_signing = hmac_sha256( 'aws4_request', $k_service ); my $authz_signature = hmac_sha256_hex( $sts, $k_signing ); my $authz_credential = join '/', $self->{access_key_id}, $dt->strftime('%Y%m%d'), $self->{endpoint}, $self->{service}, 'aws4_request'; my $authz_signed_headers = join ';', _headers_to_sign( $req ); my $authz = "$ALGORITHM Credential=$authz_credential,SignedHeaders=$authz_signed_headers,Signature=$authz_signature"; return $authz; } =head1 AUTHOR Tim Nordenfur, C<< >> Maintained by Dan Book, C<< >> =cut sub _simplify_uri { my $self = shift; my $orig_uri = shift; my @parts = split /\//, $orig_uri; my @simple_parts = (); for my $part ( @parts ) { if ( $part eq '' || $part eq '.' ) { } elsif ( $part eq '..' ) { pop @simple_parts; } else { if ( $self->{no_escape_uri} ) { push @simple_parts, $part; } else { push @simple_parts, uri_escape($part); } } } my $simple_uri = '/' . join '/', @simple_parts; $simple_uri .= '/' if $orig_uri =~ m@/$@ && $simple_uri !~ m@/$@; return $simple_uri; } sub _sort_query_string { return '' unless $_[0]; my @params; for my $param ( split /&/, $_[0] ) { my ( $key, $value ) = map { tr/+/ /; uri_escape( uri_unescape( $_ ) ) } # escape all non-unreserved chars split /=/, $param; push @params, [$key, (defined $value ? $value : '')]; } return join '&', map { join '=', @$_ } sort { ( $a->[0] cmp $b->[0] ) || ( $a->[1] cmp $b->[1] ) } @params; } sub _trim_whitespace { return map { my $str = $_; $str =~ s/^\s*//; $str =~ s/\s*$//; $str } @_; } sub _str_to_timepiece { my $date = shift; if ( $date =~ m/^\d{8}T\d{6}Z$/ ) { # assume basic ISO 8601, as demanded by AWS return Time::Piece->strptime($date, '%Y%m%dT%H%M%SZ'); } else { # assume the format given in the AWS4 test suite $date =~ s/^.{5}//; # remove weekday, as Amazon's test suite contains internally inconsistent dates return Time::Piece->strptime($date, '%d %b %Y %H:%M:%S %Z'); } } sub _req_timepiece { my $req = shift; my $x_date = $req->header('X-Amz-Date'); my $date = $x_date || $req->header('Date'); if (!$date) { # No date set by the caller so set one up my $piece = Time::Piece::gmtime; $req->date($piece->epoch); return $piece } return _str_to_timepiece($date); } =head1 BUGS Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc Net::Amazon::Signature::V4 You can also look for information at: =over 4 =item * RT: CPAN's request tracker (report bugs here) L =item * Source on GitHub L =item * Search CPAN L =back =head1 LICENSE AND COPYRIGHT This software is copyright (c) 2012 by Tim Nordenfur. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut 1; # End of Net::Amazon::Signature::V4 Net-Amazon-Signature-V4-0.21/META.json0000644000175000017500000000356513737717266016710 0ustar grinnzgrinnz{ "abstract" : "Implements the Amazon Web Services signature version 4, AWS4-HMAC-SHA256", "author" : [ "Tim Nordenfur " ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 7.46, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Net-Amazon-Signature-V4", "no_index" : { "directory" : [ "t", "inc", "xt" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Digest::SHA" : "0", "Time::Piece" : "1.17", "URI::Escape" : "0", "perl" : "5.008001" } }, "test" : { "requires" : { "File::Slurper" : "0", "HTTP::Request" : "0", "Test::More" : "0" } } }, "release_status" : "stable", "resources" : { "repository" : { "type" : "git", "url" : "https://github.com/Grinnz/Net-Amazon-Signature-V4.git", "web" : "https://github.com/Grinnz/Net-Amazon-Signature-V4" } }, "version" : "0.21", "x_contributors" : [ "Arthur Axel fREW Schmidt ", "Dan Book ", "Javier Arturo Rodriguez ", "José Borges Ferreira ", "Karen Etheridge ", "Maik Hentsche ", "Steven Hartland ", "Tim Mullin " ], "x_serialization_backend" : "JSON::PP version 4.05" } Net-Amazon-Signature-V4-0.21/Makefile.PL0000644000175000017500000000430013620313355017203 0ustar grinnzgrinnzuse 5.008001; use strict; use warnings; use utf8; use ExtUtils::MakeMaker; my %WriteMakefile_args = ( NAME => 'Net::Amazon::Signature::V4', AUTHOR => q{Tim Nordenfur }, VERSION_FROM => 'lib/Net/Amazon/Signature/V4.pm', ABSTRACT_FROM => 'lib/Net/Amazon/Signature/V4.pm', MIN_PERL_VERSION => '5.8.1', LICENSE => 'perl_5', PREREQ_PM => { 'Digest::SHA' => 0, 'Time::Piece' => '1.17', 'URI::Escape' => 0, }, TEST_REQUIRES => { 'Test::More' => 0, 'File::Slurper' => 0, 'HTTP::Request' => 0, }, META_MERGE => { 'meta-spec' => { version => 2 }, dynamic_config => 0, no_index => { directory => [ 'xt' ], }, resources => { repository => { type => 'git', url => 'https://github.com/Grinnz/Net-Amazon-Signature-V4.git', web => 'https://github.com/Grinnz/Net-Amazon-Signature-V4', }, }, x_contributors => [ 'Arthur Axel fREW Schmidt ', 'Dan Book ', 'Javier Arturo Rodriguez ', 'José Borges Ferreira ', 'Karen Etheridge ', 'Maik Hentsche ', 'Steven Hartland ', 'Tim Mullin ', ], }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Net-Amazon-Signature-V4-*' }, ); delete $WriteMakefile_args{LICENSE} unless eval { ExtUtils::MakeMaker->VERSION('6.31') }; delete $WriteMakefile_args{META_MERGE} unless eval { ExtUtils::MakeMaker->VERSION('6.46') }; delete $WriteMakefile_args{MIN_PERL_VERSION} unless eval { ExtUtils::MakeMaker->VERSION('6.48') }; unless (eval { ExtUtils::MakeMaker->VERSION('6.64') }) { my $test_requires = delete $WriteMakefile_args{TEST_REQUIRES}; $WriteMakefile_args{PREREQ_PM}{$_} = $test_requires->{$_} for keys %$test_requires; } WriteMakefile(%WriteMakefile_args); Net-Amazon-Signature-V4-0.21/t/0000755000175000017500000000000013737717266015521 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/0000755000175000017500000000000013737717266020510 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-empty-query-key.authz0000644000175000017500000000031713067511376027044 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=cb4d0757bd95790ef00b64cdf0d5cdc573637927b6b00951d6ea28e8a7389bcbNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded-parameters.sreq0000644000175000017500000000053613067324576030702 0ustar grinnzgrinnzPOST / http/1.1 Content-Type:application/x-www-form-urlencoded; charset=utf8 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=content-type;date;host, Signature=b105eb10c6d318d2294de9d49dd8b031b55e3c3fe139f2e637da70511e9e7b71 foo=barNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-ut8-query.authz0000644000175000017500000000031713067512570025635 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=f9a749e5c424d0c560be931876e0b6848e6c88af010bc64302ae28bd4df09afbNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-space.sts0000644000175000017500000000021213340071357023066 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 4f55bbd6d1da8517f8db2671ded29e738b8eea121306a55e38f441002628f679Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query.authz0000644000175000017500000000031713067513114025320 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=d5d7c761e9810cf685b2c295eda6b9fda2ece2b484b1590707fb53aac45b8bf9Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla.creq0000644000175000017500000000044213067507474023561 0ustar grinnzgrinnzGET / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-sort.authz0000644000175000017500000000032313067512712025532 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date;zoo,Signature=734bfbae61f388ede08e29d72fba0f242537cb70bff1705433192d472ea33133Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key-case.creq0000644000175000017500000000046113067507462027532 0ustar grinnzgrinnzGET / foo=Zoo&foo=aha date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded.sreq0000644000175000017500000000052013067324576026532 0ustar grinnzgrinnzPOST / http/1.1 Content-Type:application/x-www-form-urlencoded Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=content-type;date;host, Signature=5a15b22cf462f047318703b92e6f4f38884e4a7ab7b1d6426ca46a8bd1c26cbc foo=barNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-trim.authz0000644000175000017500000000032113067510343025630 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;p;x-amz-content-sha256;x-amz-date,Signature=4d4984f63f36974514f15f39cf4fb5d67bc1617dd145debdb2c631a09d21f642Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-value-case.authz0000644000175000017500000000032313067512753026007 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date;zoo,Signature=f06af42bd1ab3be389cb89783dcb0977b79cfbaf8869cb7bace460cf162231e2Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-sort.creq0000644000175000017500000000046313067507477025352 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z zoo:zoobar date;host;x-amz-content-sha256;x-amz-date;zoo e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key.sts0000644000175000017500000000021213067511466026471 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request c0986ed1c5c500cfa480098527c216aa5260716cedd9860355f25d8239dc62d3Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slashes.authz0000644000175000017500000000031713067510702023763 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=01a0739b728d139be65d57428b3e3c7f3448910c0e9e8fffc5a70ecebfd16335Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key.req0000644000175000017500000000012513067324576026456 0ustar grinnzgrinnzGET /?a=foo&b=foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-pointless-dot.sts0000644000175000017500000000021213067510766025717 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 9c5558491a0b9022e483b6b298a2b55c193fcb52b6d10a10ed0e706da65f7691Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla.sts0000644000175000017500000000021213067512765023640 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 0c9e11599edb0293a505bfa4b4ea195e7784a5497cb25a8f00a78d9cb162a03cNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query.sreq0000644000175000017500000000041313067324576024742 0ustar grinnzgrinnzGET / http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b27ccfbfa7df52a200ff74193ca6e32d4b48b8856fab7ebf1c595d0670a7e470 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-empty-query-value.creq0000644000175000017500000000045213067507503027372 0ustar grinnzgrinnzPOST / foo=bar date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-unreserved.authz0000644000175000017500000000031713067512511027272 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=623f21c81a6322d2e274f389dc9f79fa568c1bef3bbe0907631063e8b6fefc7fNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-utf8.sreq0000644000175000017500000000042413067324576023041 0ustar grinnzgrinnzGET /%E1%88%B4 http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=8d6634c189aa8c75c2e51e106b6b5121bed103fdb351f7d7d4381c738823af74 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-space.sreq0000644000175000017500000000042213067324576023244 0ustar grinnzgrinnzGET /%20/foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=f309cfbd10197a230c42dd17dbf5cca8a0722564cb40a872d25623cfa758e374 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-space.sts0000644000175000017500000000021213067513170026063 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 056fb23619b5d0466f08843e232e94203e50af2c6952a1da1f12c0c3fb2f873dNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slashes.sreq0000644000175000017500000000042113067324576023612 0ustar grinnzgrinnzGET //foo// http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b00392262853cfe3201e47ccf945601079e9b8a7f51ee4c3d9ee4f187aa9bf19 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-case.sts0000644000175000017500000000021213067512611025127 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 0c9e11599edb0293a505bfa4b4ea195e7784a5497cb25a8f00a78d9cb162a03cNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key.authz0000644000175000017500000000031713067511516027015 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=cc919f724a57f3f350fc9a0788792040c1f091ec557d517fab45e39bc10100a0Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash.sreq0000644000175000017500000000041413067324576023264 0ustar grinnzgrinnzGET // http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b27ccfbfa7df52a200ff74193ca6e32d4b48b8856fab7ebf1c595d0670a7e470 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-space.sreq0000644000175000017500000000042613067324576026245 0ustar grinnzgrinnzPOST /?f oo=b ar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b7eb653abe5f846e7eee4d1dba33b15419dc424aaf215d49b1240732b10cc4ca Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-unreserved.sts0000644000175000017500000000021213067512465026752 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 1095d16c4898deadfbbdb7cece13e2129b60d575586709b5859a026a28941c6aNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key.sreq0000644000175000017500000000042713067324576026646 0ustar grinnzgrinnzGET /?a=foo&b=foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=0dc122f3b28b831ab48ba65cb47300de53fbe91b577fe113edac383730254a3b Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query.sreq0000644000175000017500000000042413067324576025152 0ustar grinnzgrinnzPOST /?foo=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b6e3b79003ce0743a491606ba1035a804593b0efb1e20a11cba83f8c25a57a92 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slashes.sts0000644000175000017500000000021213067510650023435 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request feb5b5e9c01e4447f3dcc22552ff7f6bde75efc1d30fbf7ce4f3881ced35e3caNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-order.sreq0000644000175000017500000000044213067324576025626 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p:z p:a p:p p:a Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host;p, Signature=d2973954263943b11624a11d1c963ca81fb274169c7868b2858c04f083199e3d Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla.authz0000644000175000017500000000031713067511324023750 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8669346105352fcd40f85d6d892aed321806bbc8c65a5aa324eb6cbc4f974838Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative-relative.sts0000644000175000017500000000021213067510445025421 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request af16df0cbd1d23fbdc649c87e08cb2e573e72b17f8cb172bd7d64d0bb3c90d55Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-dot-slash.sts0000644000175000017500000000021213067510601024775 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request af16df0cbd1d23fbdc649c87e08cb2e573e72b17f8cb172bd7d64d0bb3c90d55Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla.sreq0000644000175000017500000000041313067324576023577 0ustar grinnzgrinnzGET / http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b27ccfbfa7df52a200ff74193ca6e32d4b48b8856fab7ebf1c595d0670a7e470 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded-parameters.sts0000644000175000017500000000021213067513274030523 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 3eab0d94563aab7a143d9cbd0339c9e3da3119f1cc1ac9e5144e4c1e6ea11320Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slashes.creq0000644000175000017500000000044613067507452023575 0ustar grinnzgrinnzGET /foo/ date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-value.sreq0000644000175000017500000000042713067324576027172 0ustar grinnzgrinnzGET /?foo=b&foo=a http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=feb926e49e382bec75c9d7dcb2a1b6dc8aa50ca43c25d2bc51143768c0875acc Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-space.authz0000644000175000017500000000031713067513215026413 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=6d7ad3c3668523a73a08b0138359f6a79ed8d2612b79acb7555359e3e36755d4Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-sort.req0000644000175000017500000000012613067324576025200 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com ZOO:zoobar Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-zero.authz0000644000175000017500000000031713340071357023302 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8251cb71eac6a5bab100e06f7d083885a5e21cb8d0857273f8244fe7d33b9967Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative.creq0000644000175000017500000000044213067507443023742 0ustar grinnzgrinnzGET / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-empty-query-key.sreq0000644000175000017500000000042313067324576026665 0ustar grinnzgrinnzGET /?foo=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=56c054473fd260c13e4e7393eb203662195f5d4a1fada5314b8b52b23f985e9f Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative-relative.authz0000644000175000017500000000031713067510476025755 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8669346105352fcd40f85d6d892aed321806bbc8c65a5aa324eb6cbc4f974838Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-key-duplicate.authz0000644000175000017500000000032313067510134026303 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date;zoo,Signature=6b60a400af462a04a4ea3e900987e0e824314d5de2188883ce71552185f0f0c9Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-pointless-dot.creq0000644000175000017500000000044513067507447026052 0ustar grinnzgrinnzGET /foo date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-space.creq0000644000175000017500000000045313340071357023216 0ustar grinnzgrinnzGET /%2520/foo date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-case.authz0000644000175000017500000000031713067512641025462 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8c5120f8b2395c64fd75a2316b696cb488eae52fcb54aca08a848c88e66d0d9dNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-zero.req0000644000175000017500000000011213340071357022727 0ustar grinnzgrinnzGET /0/foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded.sts0000644000175000017500000000021213067513230026352 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 2fffaff4913e02097eadab09da85f07e0ec9d3d931038ca88e013c2a3a178ae7Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key-case.sreq0000644000175000017500000000043313067324576027554 0ustar grinnzgrinnzGET /?foo=Zoo&foo=aha http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=be7148d34ebccdc6423b19085378aa0bee970bdc61d144bd1a8c48c33079ab09 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-key-duplicate.sts0000644000175000017500000000021213067510021025751 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request b0caa6511a519cfa6c8804ee15772fe873c75978dcbc26fb52bc846285a45947Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-nonunreserved.req0000644000175000017500000000017413067324576027664 0ustar grinnzgrinnzPOST /?@#$%^&+=/,?><`";:\|][{} =@#$%^&+=/,?><`";:\|][{} http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative.authz0000644000175000017500000000031713067510422024133 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8669346105352fcd40f85d6d892aed321806bbc8c65a5aa324eb6cbc4f974838Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-value.sts0000644000175000017500000000021213067512412027005 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 442abb8f15768598f2f887db18fa56fd0dd80ae64adf7c2bdd49775a4862d6f1Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-dot-slash.creq0000644000175000017500000000044213067507445025137 0ustar grinnzgrinnzGET / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-pointless-dot.req0000644000175000017500000000011613067324576025702 0ustar grinnzgrinnzGET /./foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-empty-query-value.req0000644000175000017500000000012213067324576027230 0ustar grinnzgrinnzPOST /?foo=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-key-duplicate.creq0000644000175000017500000000050113067507645026115 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z zoo:foobar,zoobar,zoobar date;host;x-amz-content-sha256;x-amz-date;zoo e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla.sreq0000644000175000017500000000041413067324576024006 0ustar grinnzgrinnzPOST / http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=22902d79e148b64e7571c3565769328423fe276eae4b26f83afceda9e767f726 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-multiline.req0000644000175000017500000000013013067324576026324 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p:a b c Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-utf8.authz0000644000175000017500000000031713340071357023211 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=e3950f345827e05fb852533380cff4a4ca3474d74291afb4c9328e60c4174fb6Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-unreserved.creq0000644000175000017500000000064713067507470027107 0ustar grinnzgrinnzGET / -._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-ut8-query.creq0000644000175000017500000000045713067507473025447 0ustar grinnzgrinnzGET / %E1%88%B4=bar date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-space.authz0000644000175000017500000000031713340071357023416 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=438abc8e3f9872349169ec2a1c21a8d13aab9da398278a894893e341440096f6Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-zero.sts0000644000175000017500000000020713340071357022756 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 022bd13f8160fc0469d44a4680392214e2ef6a2941132d20e21cc269cb392880Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-key-duplicate.req0000644000175000017500000000015613067324576025760 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com ZOO:zoobar zoo:foobar zoo:zoobar Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-ut8-query.sreq0000644000175000017500000000042313067324576025461 0ustar grinnzgrinnzGET /?ሴ=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=6fb359e9a05394cc7074e0feb42573a2601abc0c869a953e8c5c12e4e01f1a8c Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla.creq0000644000175000017500000000044313067507511023760 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-unreserved.creq0000644000175000017500000000054413067507455024317 0ustar grinnzgrinnzGET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-unreserved.req0000644000175000017500000000021313067324576024146 0ustar grinnzgrinnzGET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-empty-query-key.req0000644000175000017500000000012113067324576026475 0ustar grinnzgrinnzGET /?foo=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-order.sts0000644000175000017500000000021213067510205025442 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 0ba96d30178703f32a373285f09992a8562d49e5913ebf9497e9d44ccf6b4384Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-value.req0000644000175000017500000000012513067324576027002 0ustar grinnzgrinnzGET /?foo=b&foo=a http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative.req0000644000175000017500000000011713067324576023602 0ustar grinnzgrinnzGET /foo/.. http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla.req0000644000175000017500000000011213067324576023616 0ustar grinnzgrinnzPOST / http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash.sts0000644000175000017500000000021213067510522023103 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request af16df0cbd1d23fbdc649c87e08cb2e573e72b17f8cb172bd7d64d0bb3c90d55Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded.creq0000644000175000017500000000054013067507514026507 0ustar grinnzgrinnzPOST / content-type:application/x-www-form-urlencoded date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:3ba8907e7a252327488df390ed517c45b96dead033600219bdca7107d1d3f88a x-amz-date:20110909T233600Z content-type;date;host;x-amz-content-sha256;x-amz-date 3ba8907e7a252327488df390ed517c45b96dead033600219bdca7107d1d3f88aNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-case.req0000644000175000017500000000011213067324576025117 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded-parameters.authz0000644000175000017500000000033413067513317031050 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=content-type;date;host;x-amz-content-sha256;x-amz-date,Signature=efe4cca651291778c47d757aa2faa993932caeb73db526bb4e14da496a9e93f8Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-ut8-query.req0000644000175000017500000000012113067324576025271 0ustar grinnzgrinnzGET /?ሴ=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key-case.req0000644000175000017500000000013113067324576027364 0ustar grinnzgrinnzGET /?foo=Zoo&foo=aha http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-unreserved.authz0000644000175000017500000000031713067511167024511 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=b6dc1b5cbd6ff04c34bc47de8c1f172303ccd67e797ed2952af3cbc7a8eb46c1Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative.sts0000644000175000017500000000021213067510367023613 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request af16df0cbd1d23fbdc649c87e08cb2e573e72b17f8cb172bd7d64d0bb3c90d55Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-space.req0000644000175000017500000000012013067324576023054 0ustar grinnzgrinnzGET /%20/foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-sort.sreq0000644000175000017500000000043413067324576025365 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com ZOO:zoobar Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host;zoo, Signature=b7a95a52518abbca0964a999a880429ab734f35ebbf1235bd79a5de87756dc4a Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded.req0000644000175000017500000000020113067324576026343 0ustar grinnzgrinnzPOST / http/1.1 Content-Type:application/x-www-form-urlencoded Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com foo=barNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-nonunreserved.creq0000644000175000017500000000054513067507504030023 0ustar grinnzgrinnzPOST / %20=%2F%2C%3F%3E%3C%60%22%3B%3A%5C%7C%5D%5B%7B%7D&%40%23%24%25%5E= date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-nonunreserved.authz0000644000175000017500000000031713067513155030220 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=a940ab46d52033638602cc31ed33caec5e2462806087e77be03f1c85295c8d2eNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-trim.sreq0000644000175000017500000000043113067324576025464 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p: phfft Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host;p, Signature=debf546796015d6f6ded8626f5ce98597c33b47b9164cf6b17b4642036fcb592 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-case.sreq0000644000175000017500000000041413067324576025307 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=22902d79e148b64e7571c3565769328423fe276eae4b26f83afceda9e767f726 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-key-duplicate.sreq0000644000175000017500000000046413067324576026145 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com ZOO:zoobar zoo:foobar zoo:zoobar Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host;zoo, Signature=54afcaaf45b331f81cd2edb974f7b824ff4dd594cbbaa945ed636b48477368ed Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-order.authz0000644000175000017500000000032113067510250025765 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;p;x-amz-content-sha256;x-amz-date,Signature=95a7c68cefcf28bf29589eb8d2c3d352e41f040d68bd8da1b18d3304b58a36e7Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-empty-query-key.creq0000644000175000017500000000045113067507461026642 0ustar grinnzgrinnzGET / foo=bar date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-value.creq0000644000175000017500000000045513067507466027154 0ustar grinnzgrinnzGET / foo=a&foo=b date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-empty-query-key.sts0000644000175000017500000000021213067511351026505 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request c437cde4d178f50fa9b879389601494f101c494476a201398bfc0c5b4b7604b3Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash.creq0000644000175000017500000000044213067507450023237 0ustar grinnzgrinnzGET / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query.req0000644000175000017500000000011113067324576024552 0ustar grinnzgrinnzGET / http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla.sts0000644000175000017500000000021213067511276023426 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request af16df0cbd1d23fbdc649c87e08cb2e573e72b17f8cb172bd7d64d0bb3c90d55Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-utf8.req0000644000175000017500000000012213067324576022651 0ustar grinnzgrinnzGET /%E1%88%B4 http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-empty-query-value.sreq0000644000175000017500000000042413067324576027420 0ustar grinnzgrinnzPOST /?foo=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b6e3b79003ce0743a491606ba1035a804593b0efb1e20a11cba83f8c25a57a92 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-dot-slash.sreq0000644000175000017500000000041513067324576025161 0ustar grinnzgrinnzGET /./ http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b27ccfbfa7df52a200ff74193ca6e32d4b48b8856fab7ebf1c595d0670a7e470 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-order.req0000644000175000017500000000013613067324576025443 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p:z p:a p:p p:a Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded.authz0000644000175000017500000000033413067513257026712 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=content-type;date;host;x-amz-content-sha256;x-amz-date,Signature=1b70a04455e01952e0e37cccd8400d0733d6b50a41bbdddf046a8e96cc6dd137Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative-relative.sreq0000644000175000017500000000043013067324576025574 0ustar grinnzgrinnzGET /foo/bar/../.. http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b27ccfbfa7df52a200ff74193ca6e32d4b48b8856fab7ebf1c595d0670a7e470 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded-parameters.creq0000644000175000017500000000055613067507512030655 0ustar grinnzgrinnzPOST / content-type:application/x-www-form-urlencoded; charset=utf8 date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:3ba8907e7a252327488df390ed517c45b96dead033600219bdca7107d1d3f88a x-amz-date:20110909T233600Z content-type;date;host;x-amz-content-sha256;x-amz-date 3ba8907e7a252327488df390ed517c45b96dead033600219bdca7107d1d3f88aNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-ut8-query.sts0000644000175000017500000000021213067512532025303 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request b05cefc2911bd5704e2e6618564803f6fdd9b09df1566dde8eecb368f0e56145Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-trim.creq0000644000175000017500000000045613067507437025452 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p:phfft x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;p;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-nonunreserved.sts0000644000175000017500000000021213067513131027662 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request dddc3c6618b5a01c05e19dc06a5602fe1ee045fa5cc153b633029732fd28fff6Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query.sts0000644000175000017500000000021213067511416024565 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request af16df0cbd1d23fbdc649c87e08cb2e573e72b17f8cb172bd7d64d0bb3c90d55Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative.sreq0000644000175000017500000000042113067324576023763 0ustar grinnzgrinnzGET /foo/.. http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=b27ccfbfa7df52a200ff74193ca6e32d4b48b8856fab7ebf1c595d0670a7e470 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla.authz0000644000175000017500000000031713067513010024150 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8c5120f8b2395c64fd75a2316b696cb488eae52fcb54aca08a848c88e66d0d9dNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-unreserved.sreq0000644000175000017500000000051513067324576024336 0ustar grinnzgrinnzGET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=830cc36d03f0f84e6ee4953fbe701c1c8b71a0372c63af9255aa364dd183281e Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-dot-slash.req0000644000175000017500000000011313067324576024771 0ustar grinnzgrinnzGET /./ http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-unreserved.req0000644000175000017500000000031713067324576026742 0ustar grinnzgrinnzGET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slashes.req0000644000175000017500000000011713067324576023431 0ustar grinnzgrinnzGET //foo// http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-utf8.creq0000644000175000017500000000046113340071357023010 0ustar grinnzgrinnzGET /%25E1%2588%25B4 date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key-case.authz0000644000175000017500000000031713067512372027727 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=abf2fe2a86d8435951e88c591c1f7e8242ffe922382ebe05339525bc4394636cNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query.sts0000644000175000017500000000021213067513071024772 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 69df14c13ca89d6cdcccab9373feeac7b9ee1479fac9a78af4103b7db239c99cNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-value.authz0000644000175000017500000000031713067512442027340 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=4fa1459e93290ed4fde286bb32c04afd376307ce5c62721d99ad311b0efe7591Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query.creq0000644000175000017500000000044213067507471024721 0ustar grinnzgrinnzGET / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key.creq0000644000175000017500000000045513067507464026626 0ustar grinnzgrinnzGET / a=foo&b=foo date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-value-case.sts0000644000175000017500000000021213067512727025463 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 250382258b4602dae1bbb28d9c4ff916189eeb9d462b5139190eef33e24225cdNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-zero.creq0000644000175000017500000000043613340071357023103 0ustar grinnzgrinnzGET /0/foo date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-empty-query-value.sts0000644000175000017500000000021213067513030027233 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 69df14c13ca89d6cdcccab9373feeac7b9ee1479fac9a78af4103b7db239c99cNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash.authz0000644000175000017500000000031713067510552023436 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8669346105352fcd40f85d6d892aed321806bbc8c65a5aa324eb6cbc4f974838Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-value-case.sreq0000644000175000017500000000043413067324576025635 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com zoo:ZOOBAR Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host;zoo, Signature=273313af9d0c265c531e11db70bbd653f3ba074c1009239e8559d3987039cad7 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla.req0000644000175000017500000000011113067324576023407 0ustar grinnzgrinnzGET / http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-order.creq0000644000175000017500000000046013067507435025603 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p:a,a,p,z x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;p;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-space.req0000644000175000017500000000012413067324576026055 0ustar grinnzgrinnzPOST /?f oo=b ar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-value-case.creq0000644000175000017500000000046313067507501025606 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z zoo:ZOOBAR date;host;x-amz-content-sha256;x-amz-date;zoo e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-unreserved.sts0000644000175000017500000000021213067511106024152 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 33b450b302fa75e06a54e5137ce6980eccf592adfd89325e8dde69dcd989f53eNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash.req0000644000175000017500000000011213067324576023074 0ustar grinnzgrinnzGET // http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-dot-slash.authz0000644000175000017500000000031713067510626025334 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8669346105352fcd40f85d6d892aed321806bbc8c65a5aa324eb6cbc4f974838Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-zero.sreq0000644000175000017500000000041313340071357023116 0ustar grinnzgrinnzGET /0/foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=f309cfbd10197a230c42dd17dbf5cca8a0722564cb40a872d25623cfa758e374 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-utf8.sts0000644000175000017500000000021213340071357022661 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request b5e7dc96063ba55850e9e512709886c48d01e8ec496f4be356fb4236a5f7ed93Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-case.creq0000644000175000017500000000044313067507476025273 0ustar grinnzgrinnzPOST / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query.req0000644000175000017500000000012213067324576024762 0ustar grinnzgrinnzPOST /?foo=bar http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-pointless-dot.authz0000644000175000017500000000031713067511013026231 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=660feeec447e03b5a5e5de29536e516014a3e7b7c9910f515724102a2be0c085Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-empty-query-value.authz0000644000175000017500000000031713067513055027572 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=d5d7c761e9810cf685b2c295eda6b9fda2ece2b484b1590707fb53aac45b8bf9Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-nonunreserved.sreq0000644000175000017500000000047613067324576030054 0ustar grinnzgrinnzPOST /?@#$%^&+=/,?><`";:\|][{} =@#$%^&+=/,?><`";:\|][{} http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=28675d93ac1d686ab9988d6617661da4dffe7ba848a2285cb75eac6512e861f9 Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-unreserved.sreq0000644000175000017500000000062113067324576027123 0ustar grinnzgrinnzGET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=f1498ddb4d6dae767d97c466fb92f1b59a2c71ca29ac954692663f9db03426fb Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query-order-key-case.sts0000644000175000017500000000021213067512340027372 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 2f98480086079f9e0641302d5800161e8eb8a4d5828aa3a712b028a33c860bbbNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-value-case.req0000644000175000017500000000012613067324576025450 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com zoo:ZOOBAR Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query-space.creq0000644000175000017500000000044513067507506026222 0ustar grinnzgrinnzPOST / f= date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-slash-pointless-dot.sreq0000644000175000017500000000042013067324576026063 0ustar grinnzgrinnzGET /./foo http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request, SignedHeaders=date;host, Signature=910e4d6c9abafaf87898e1eb4c929135782ea25bb0279703146455745391e63a Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative-relative.creq0000644000175000017500000000044213067507441025551 0ustar grinnzgrinnzGET / date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-trim.sts0000644000175000017500000000021213067510303025301 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 7150d1d106c43e2ceda6364200bcdf250c8ddf4698b701f308903799b219defeNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-relative-relative.req0000644000175000017500000000012613067324576025413 0ustar grinnzgrinnzGET /foo/bar/../.. http/1.1 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-vanilla-query.authz0000644000175000017500000000031713067511442025114 0ustar grinnzgrinnzAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20110909/us-east-1/host/aws4_request,SignedHeaders=date;host;x-amz-content-sha256;x-amz-date,Signature=8669346105352fcd40f85d6d892aed321806bbc8c65a5aa324eb6cbc4f974838Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-vanilla-query.creq0000644000175000017500000000045213067507507025130 0ustar grinnzgrinnzPOST / foo=bar date:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20110909T233600Z date;host;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-x-www-form-urlencoded-parameters.req0000644000175000017500000000021713067324576030513 0ustar grinnzgrinnzPOST / http/1.1 Content-Type:application/x-www-form-urlencoded; charset=utf8 Date:Mon, 09 Sep 2011 23:36:00 GMT Host:host.foo.com foo=barNet-Amazon-Signature-V4-0.21/t/aws4_testsuite/get-header-value-trim.req0000644000175000017500000000012513067324576025301 0ustar grinnzgrinnzPOST / http/1.1 DATE:Mon, 09 Sep 2011 23:36:00 GMT host:host.foo.com p: phfft Net-Amazon-Signature-V4-0.21/t/aws4_testsuite/post-header-key-sort.sts0000644000175000017500000000021213067512662025211 0ustar grinnzgrinnzAWS4-HMAC-SHA256 20110909T233600Z 20110909/us-east-1/host/aws4_request 21d5fb0aeff31364afcd39fe6a2f55b81f8729399dc6cb8bc7d22272a7334ca3Net-Amazon-Signature-V4-0.21/t/10-aws-tests.t0000644000175000017500000000425213340071357020041 0ustar grinnzgrinnz#!perl use warnings; use strict; use Net::Amazon::Signature::V4; use File::Slurper 'read_text'; use HTTP::Request; use Test::More; my $testsuite_dir = 't/aws4_testsuite'; my @test_names = qw/get-header-key-duplicate get-header-value-order get-header-value-trim get-relative get-relative-relative get-slash get-slash-dot-slash get-slashes get-slash-pointless-dot get-space get-unreserved get-utf8 get-vanilla get-vanilla-empty-query-key get-vanilla-query get-vanilla-query-order-key get-vanilla-query-order-key-case get-vanilla-query-order-value get-vanilla-query-unreserved get-vanilla-ut8-query get-zero post-header-key-case post-header-key-sort post-header-value-case post-vanilla post-vanilla-empty-query-value post-vanilla-query post-vanilla-query-nonunreserved post-vanilla-query-space post-x-www-form-urlencoded post-x-www-form-urlencoded-parameters/; # all tests # only .req is supplied for test "get-header-value-multiline"; why? plan tests => 1+4*@test_names; my $sig = Net::Amazon::Signature::V4->new( 'AKIDEXAMPLE', 'wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY', 'us-east-1', 'host', ); ok( -d $testsuite_dir, 'testsuite directory existence' ); for my $test_name ( @test_names ) { ok( -f "$testsuite_dir/$test_name.req", "$test_name.req existence" ); my $req = HTTP::Request->parse( read_text( "$testsuite_dir/$test_name.req" ) ); #diag("$test_name creq"); my $creq = $sig->_canonical_request( $req ); if ( ! string_fits_file( $creq, "$testsuite_dir/$test_name.creq" ) ) { fail( "canonical request mismatch, string-to-sign can't pass" ); fail( "canonical request mismatch, authorization can't pass" ); next; } #diag("$test_name sts"); my $sts = $sig->_string_to_sign( $req ); if ( ! string_fits_file( $sts, "$testsuite_dir/$test_name.sts" ) ) { fail( "string-to-sign request mismatch, authorization can't pass" ); next; } #diag("$test_name authz"); my $authz = $sig->_authorization( $req ); string_fits_file( $authz, "$testsuite_dir/$test_name.authz" ); } sub string_fits_file { my ( $str, $expected_path ) = @_; my $expected_str = read_text( $expected_path ); $expected_str =~ s/\r\n/\n/g; is( $str, $expected_str, $expected_path ); return $str eq $expected_str; } Net-Amazon-Signature-V4-0.21/t/00-load.t0000644000175000017500000000032313067333277017030 0ustar grinnzgrinnz#!perl use Test::More tests => 1; BEGIN { use_ok( 'Net::Amazon::Signature::V4' ) || print "Bail out!\n"; } diag( "Testing Net::Amazon::Signature::V4 $Net::Amazon::Signature::V4::VERSION, Perl $], $^X" ); Net-Amazon-Signature-V4-0.21/Changes0000644000175000017500000000464713737356724016562 0ustar grinnzgrinnzRevision history for Net-Amazon-Signature-v4 0.21 - Include non-standard ports in request Host header (GH#9) 0.20 2020-02-11 - Don't double-escape URI segments for S3 (RT#128728, GH#7) - Allow passing attributes to new() in a hashref - security_token attribute can be specified to apply to each signed request (GH#8) 0.19 2018-08-24 - Fix error in signature if a URI path component is 0 (GH#4) - Fix canonical path encoding for use in Elasticsearch service (GH#6) 0.18 2017-11-21 - Performance optimizations to request canonicalization 0.17 2017-11-21 - Correctly canonicalize request URIs without a trailing slash after the hostname (GH#3) 0.16 2017-04-28 - Stable release containing previous fixes 0.15_03 2017-04-04 - Additional patch by Arthur Axel fREW Schmidt (GH#1): - Use Time::Piece instead of DateTime for date formatting/parsing. - Avoid parsing the date at all if the user allowed it to be defaulted. 0.15_02 2017-03-31 - Additional patch by Steven Hartland (RT#100964): - Ensures the Host header is always present, as its required. - Sets the X-Amz-Content-Sha256 when we calculate the payload hash, as certain regions require it. - Always sets X-Amz-Date to workaround Amazon implementation not abiding by the spec and requiring X-Amz-Date in some regions. 0.15_01 2017-03-30 - Patch by Steven Hartland (RT#100964): - Remove dependency on perl 5.10 features. - Ensure a date is always present, using X-Amz-Date if present. - Remove spaces between Credential, SignedHeaders and Signature in the header as per spec. - Use \x0a line endings as per spec. - Correctly declare test dependencies (ether) (RT#107308) - Switch from File::Slurp to File::Slurper (ether) (RT#107310) 0.14 2013-02-26 - Allow client-side content-sha256 calculation. 0.13 2012-10-17 - Fixed edge-case on query string order after clarification from Amazon. 0.12 2012-10-03 - Fixed documentation errors (ticket #79965) 0.11 2012-09-13 - Added HTTP::Request prerequisite. 0.10 2012-09-05 - Entire AWS test suite passes. - Cleaner tests. 0.08 2012-09-04 - Support for HTTPS requests. (ticket #79390) 0.07 2012-08-29 - Almost all AWS tests pass. - Fixed File::Slurp testing prerequisite. 0.06 2012-08-28 - URI canonicalization to support "//", "." and ".." in URIs. 0.05 2012-08-28 - Improved documentation. 0.01 2012-08-26 - First version, released on an unsuspecting world. Net-Amazon-Signature-V4-0.21/LICENSE0000644000175000017500000004336113067334115016252 0ustar grinnzgrinnzTerms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2012 by Tim Nordenfur. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2012 by Tim Nordenfur. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End Net-Amazon-Signature-V4-0.21/META.yml0000644000175000017500000000226313737717266016532 0ustar grinnzgrinnz--- abstract: 'Implements the Amazon Web Services signature version 4, AWS4-HMAC-SHA256' author: - 'Tim Nordenfur ' build_requires: ExtUtils::MakeMaker: '0' File::Slurper: '0' HTTP::Request: '0' Test::More: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'ExtUtils::MakeMaker version 7.46, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Net-Amazon-Signature-V4 no_index: directory: - t - inc - xt requires: Digest::SHA: '0' Time::Piece: '1.17' URI::Escape: '0' perl: '5.008001' resources: repository: https://github.com/Grinnz/Net-Amazon-Signature-V4.git version: '0.21' x_contributors: - 'Arthur Axel fREW Schmidt ' - 'Dan Book ' - 'Javier Arturo Rodriguez ' - 'José Borges Ferreira ' - 'Karen Etheridge ' - 'Maik Hentsche ' - 'Steven Hartland ' - 'Tim Mullin ' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' Net-Amazon-Signature-V4-0.21/xt/0000755000175000017500000000000013737717266015711 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/xt/release/0000755000175000017500000000000013737717266017331 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/xt/release/manifest.t0000644000175000017500000000024113067333323021301 0ustar grinnzgrinnz#!perl use strict; use warnings; use Test::More; eval "use Test::CheckManifest 0.9"; plan skip_all => "Test::CheckManifest 0.9 required" if $@; ok_manifest(); Net-Amazon-Signature-V4-0.21/xt/author/0000755000175000017500000000000013737717266017213 5ustar grinnzgrinnzNet-Amazon-Signature-V4-0.21/xt/author/pod-coverage.t0000644000175000017500000000104713067324576021747 0ustar grinnzgrinnzuse strict; use warnings; use Test::More; # Ensure a recent version of Test::Pod::Coverage my $min_tpc = 1.08; eval "use Test::Pod::Coverage $min_tpc"; plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage" if $@; # Test::Pod::Coverage doesn't require a minimum Pod::Coverage version, # but older versions don't recognize some common documentation styles my $min_pc = 0.18; eval "use Pod::Coverage $min_pc"; plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" if $@; all_pod_coverage_ok(); Net-Amazon-Signature-V4-0.21/xt/author/pod.t0000644000175000017500000000034513067333313020143 0ustar grinnzgrinnz#!perl use strict; use warnings; use Test::More; # Ensure a recent version of Test::Pod my $min_tp = 1.22; eval "use Test::Pod $min_tp"; plan skip_all => "Test::Pod $min_tp required for testing POD" if $@; all_pod_files_ok(); Net-Amazon-Signature-V4-0.21/xt/author/boilerplate.t0000644000175000017500000000247113067333310021662 0ustar grinnzgrinnz#!perl use 5.006; use strict; use warnings; use Test::More tests => 3; sub not_in_file_ok { my ($filename, %regex) = @_; open( my $fh, '<', $filename ) or die "couldn't open $filename for reading: $!"; my %violated; while (my $line = <$fh>) { while (my ($desc, $regex) = each %regex) { if ($line =~ $regex) { push @{$violated{$desc}||=[]}, $.; } } } if (%violated) { fail("$filename contains boilerplate text"); diag "$_ appears on lines @{$violated{$_}}" for keys %violated; } else { pass("$filename contains no boilerplate text"); } } sub module_boilerplate_ok { my ($module) = @_; not_in_file_ok($module => 'the great new $MODULENAME' => qr/ - The great new /, 'boilerplate description' => qr/Quick summary of what the module/, 'stub function definition' => qr/function[12]/, ); } TODO: { local $TODO = "Need to replace the boilerplate text"; not_in_file_ok(README => "The README is used..." => qr/The README is used/, "'version information here'" => qr/to provide version information/, ); not_in_file_ok(Changes => "placeholder date/time" => qr(Date/time) ); module_boilerplate_ok('lib/Net/Amazon/Signature/V4.pm'); }