GitXplorerGitXplorer
m

azure-sas

public
0 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
577ceec670e69bdb4d9b4911d342f06880c48db6

Update README.md

mmluts committed 8 years ago
Unverified
c5671a9c7b40d3ca395806ee04098d5411a2ae8f

Update version

mmluts committed 8 years ago
Unverified
122ea972f4c2e8afad04094b55f63a9e4b162d32

Add azure-sas to make it work with automatical bundler require

mmluts committed 8 years ago
Unverified
36fe5b0b7e5f1f7f606fc32c5a8c3b2edfc907ea

Release version with additional require

mmluts committed 8 years ago
Unverified
2c14afe6120a5acebcdfe19126e1f1e3a0b8137f

Clarify README.md

mmluts committed 8 years ago
Unverified
cb723c9938ab7872f593dcb9f9a0a4c553cff9cb

Change dependencies, because they doesn't fit into my project

mmluts committed 8 years ago

README

The README file for this repository.

azure-sas

Shared Access Signature generation for Azure

I've implemented this for generating SAS for blobs on azure storage. https://github.com/giantmachines/azure-contrib was not suitable, because it depends on the deprecated version of celluloid and is not actively maintained.

Example

url = 'https://myaccount.blob.core.windows.net/music '
Azure::SAS::BLOB.new(
  ENV['AZURE_STORAGE_ACCESS_KEY'],  # Here should be your azure access key
  ENV['AZURE_STORAGE_ACCOUNT'],     # Here should be your storage account name
  url,                              # URL to sign
  signedpermissions: 'r'            # Read-only
  signedexpiry: Time.now + (60 * 5) # 5 minutes after now the link will be expired
).generate

Links