azure-sas
Azure Shared Access Signature Signing (for node.js).
The goal is to provide a way to grant access keys to your azure resources
(like querying a table from the browser) with a very small footprint.
Usage
The tests are written in an end-to-end style see them
for actual usage (making calls to azure)
var sas = require('azure-sas');
var expires = new Date();
expires.setHours(expires.getHours() + 1);
var queryParams = sas.table({
resource: 'tablename',
signedpermissions: 'r',
signedexpiry: expires
});
var superagent = require('superagent');
superagent.get('https://mytable.table.core.windows.net/mytable()').
query('$filter', '(PartitionKey eq "mypartition")').
set('Accept', 'application/json');
end(function(err, result) {
var json = result.res.body;
});