GitXplorerGitXplorer
m

azure-sas

public
0 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
00fa9e41f7fdbfffaec3d57dcb313d89ec075914

Explicit deps

mmluts committed 8 years ago
Unverified
1dd42b0caf2e33940d719e3e469f12db51a706eb

Release

mmluts committed 8 years ago
Unverified
290fb09adc230c1d37e2d867a205b9f2fc158cab

Implement signature generation code

mmluts committed 8 years ago
Unverified
edb0446bba8427eac4b12afad6d3189be312ca5c

Initial commit

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