1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Refresh credentials if needed when signing S3 URL

This commit is contained in:
Mathew Kamkar 2015-05-02 01:07:08 -07:00
parent 4d7ab74f3b
commit 36c82ab9f6

View file

@ -139,6 +139,8 @@ module Fog
end
def signed_url(params, expires)
refresh_credentials_if_expired
#convert expires from a point in time to a delta to now
expires = expires.to_i
if @signature_version == 4
@ -314,6 +316,7 @@ module Fog
class Mock
include Utils
include Fog::AWS::CredentialFetcher::ConnectionMethods
def self.acls(type)
case type