Method: Azure::Blob::Auth::SharedAccessSignature#signable_string
- Defined in:
- lib/azure/blob/auth/shared_access_signature.rb
#signable_string(path, options) ⇒ String
Construct the plaintext to the spec required for signatures
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/azure/blob/auth/shared_access_signature.rb', line 62 def signable_string(path, ) # Order is significant # The newlines from empty strings here are required [:start] = Time.parse([:start]).utc.iso8601 if [:start] [:expiry] = Time.parse([:expiry]).utc.iso8601 if [:expiry] [ [:permissions], [:start], [:expiry], canonicalized_resource(path), [:identifier], [:version], [:cache_control], [:content_disposition], [:content_encoding], [:content_language], [:content_type] ].join("\n") end |