SAS Token functions not working

#136 · closed · 1 comments

View on GitHub ↗

arac-codespace

Hi, I wanted to ask if the token generation functions are still working (mainly, the get_service_sas function). I've tried using get_service_sas to generate a token for a specific container, but the tokens returned don't work/are invalid. For context, I'm trying to generate a short-lived token for a container that will be appended to the URL of the images and displayed on a web-app. The png images are stored on containername/images. To get those tokens, I've tried just about every combination of parameters listed on the documentation with no success. I've tried: 1) Providing the storage_endpoint object as the account. eg: get_service_sas(endp, "containername") 2) Providing the account, service, resource and account_key separately. I've also tried to explicitly provide things like resource type, permissions and other things. 3) I've tried changing the resource and resource type. eg: setting resource_type to 'b' and setting the resource to 'containername/images/imagename.png' Nothing works though. The storage that I'm using is a gen2. The SAS tokens created through the portal work using the same account key I mentioned previously also work.

Comments

arac-codespace

Nevermind. Needed to change the auth_api_version to an older one for it to work with my storage account.