-
-
09 May 2018 01:42:18 UTC
- Distribution: Net-Azure-Authorization-SAS
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (1308 / 0 / 0)
- Kwalitee
Bus factor: 1- 97.33% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (10.15KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
azuma.satoshi
NAME
Net::Azure::Authorization::SAS - A Token Generator of Shared Access Signature Autorization for Microsoft Azure
SYNOPSIS
use Net::Azure::Authorization::SAS; my $sas = Net::Azure::Authorization::SAS->new(connection_string => 'Endpoint=sb://...'); my $token = $sas->token('https://...');
DESCRIPTION
Net::Azure::Authorization::SAS is a token generator class for Shared Access Signature (SAS).
If you want to know about SAS, please see https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/ .
METHODS
new
my $sas = Net::Azure::Autorization::SAS->new(conenction_string => 'Endpoint=sb://...');
The constructor method.
connection_string parameter that is a "CONNECTION STRING" of "Access Policy" from azure portal is required.
If you want to specify `endpoint`, `shared_access_key_name`, `shared_access_key`, and `entity_path` manually, you can it like as following.
my $sas = Net::Azure::Authorization::SAS->new( endpoint => 'sb://...', shared_access_key_name => 'application', shared_access_key => 'YourSharedAccessKey.....', entity_path => 'myentity' ### -> optional )
token
my $token = $sas->token($url);
Returns a token for set as "Authorization" header of a HTTP::Request object.
LICENSE
Copyright (C) ytnobody.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
ytnobody <ytnobody@gmail.com>
Module Install Instructions
To install Net::Azure::Authorization::SAS, copy and paste the appropriate command in to your terminal.
cpanm Net::Azure::Authorization::SAS
perl -MCPAN -e shell install Net::Azure::Authorization::SAS
For more information on module installation, please visit the detailed CPAN module installation guide.