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:
parent
4d7ab74f3b
commit
36c82ab9f6
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue