sastoken Module

This module contains tools for working with Shared Access Signature (SAS) Tokens

Classes

SasToken

Shared Access Signature Token used to authenticate a request

Parameters: uri (str): URI of the resource to be accessed key_name (str): Shared Access Key Name key (str): Shared Access Key (base64 encoded) ttl (int)[default 3600]: Time to live for the token, in seconds

Data Attributes: expiry_time (int): Time that token will expire (in UTC, since epoch) ttl (int): Time to live for the token, in seconds

Raises: SasTokenError if trying to build a SasToken from invalid values

SasTokenError

Error in SasToken

Initializer for SasTokenError