def get_token(self):
    '\n        Generates an Azure SAS token for pre-authorizing a file upload.\n\n        Returns a tuple in the following format: (token_dict, object_name), where\n            - token_dict has a `token` key which contains the SAS token as a string\n            - object_name is a string\n        '
    account = self.CloudStorageAccount(account_name=self.account_name, account_key=self.storage_key)
    bbs = account.create_block_blob_service()
    object_name = self.object_name()
    sas_token = bbs.generate_blob_shared_access_signature(self.container_name, object_name, permission=self.BlobPermissions.CREATE, expiry=(datetime.utcnow() + self.timeout), protocol='https')
    return ({'token': sas_token}, object_name)
Generates an Azure SAS token for pre-authorizing a file upload.

Returns a tuple in the following format: (token_dict, object_name), where
    - token_dict has a `token` key which contains the SAS token as a string
    - object_name is a string
def get_token(self):
    '\n        Generates an Azure SAS token for pre-authorizing a file upload.\n\n        Returns a tuple in the following format: (token_dict, object_name), where\n            - token_dict has a `token` key which contains the SAS token as a string\n            - object_name is a string\n        '
    account = self.CloudStorageAccount(account_name=self.account_name, account_key=self.storage_key)
    bbs = account.create_block_blob_service()
    object_name = self.object_name()
    sas_token = bbs.generate_blob_shared_access_signature(self.container_name, object_name, permission=self.BlobPermissions.CREATE, expiry=(datetime.utcnow() + self.timeout), protocol='https')
    return ({'token': sas_token}, object_name)