Questions tagged [sas-token]

A shared access signature token (SAS token)

From: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview

A shared access signature (SAS) provides secure delegated access to resources in your storage account without compromising the security of your data. With a SAS token, you have granular control over how a client can access your data. You can control what resources the client may access, what permissions they have on those resources, and how long the SAS is valid, among other parameters.

How a shared access signature works A shared access signature is a signed URI that points to one or more storage resources and includes a token that contains a special set of query parameters. The token indicates how the resources may be accessed by the client. One of the query parameters, the signature, is constructed from the SAS parameters and signed with the key that was used to create the SAS. This signature is used by Azure Storage to authorize access to the storage resource.

93 questions
4
votes
2 answers

Invalid SAS token being created for Azure API Management

I am trying to create an SAS Token to communicate with Azure API Management Rest API using JavaScript (Express.js). But using that actually leads me to a 401 Unauthorized. I am using the following lines of code. // setting one day expiry…
3
votes
1 answer

How to create user delegation SAS after getting User Delegation key

I want to generate User Delegation SAS Token to read the Azure BLOB I know we have to follow below step to get it. Get the oAuth Token from Azure Ad Generate user delegation key using oAuth Token Generate SAS Token using user delegation key I am…
Dummy B
  • 33
  • 5
3
votes
1 answer

Using SAS Token with Azure ServiceBus

I am using new Azure ServiceBus SDK which is .NET Standard 2.0 and I am finding it difficult to use SAS Token. Previously, it used to be MessagingFactory but in new SDK it's not there. ServiceBusConnectionStringBuilder has SAS Token but it also…
Amit
  • 191
  • 4
  • 14
3
votes
1 answer

Event Hub API POST: 40103: Invalid authorization token signature

Before this gets marked as a duplicate: I have read every question/answer on SO with the above error message, and none of them solved my problem. I must be missing something simple, as what should be simple is not working. I have created an Event…
Billy Brown
  • 2,272
  • 23
  • 25
2
votes
1 answer

Azure ML: Upload File to Step Run's Output - Authentication Error

During a PythonScriptStep in an Azure ML Pipeline, I'm saving a model as joblib pickle dump to a directory in a Blob Container in the Azure Blob Storage which I've created during the setup of the Azure ML Workspace. Afterwards I'm trying to upload…
2
votes
1 answer

Generate SAS token for a directory in Azure blob storage in Python

I'm attempting to use Python in order to limit which parts of my Azure storage different users can access. I have been looking for code that can generate a SAS token for a specific directory in my Storage container. I am hoping that generating a SAS…
Markus B
  • 83
  • 1
  • 10
2
votes
2 answers

Azure Storage: How to avoid clock skew issues with a Blob level SAS token

I'm occasionally having trouble with Azure Storage SAS tokens generated on the server. I don't set anything for start time since this was recommended to avoid clock skew issues, and I set my expiry time to 1 hour after DateTime.UtcNow. Every now and…
user246392
  • 2,661
  • 11
  • 54
  • 96
2
votes
3 answers

Is it possible to create a SAS token for a directory in DataLake Gen2 storage?

I have an Azure Function that triggers from a directory (namespace) nested within an ADLS Gen 2 storage container. Example: ADLS_AccountName/topLevelContainer/Directory1/Directory2/{name} Unfortunately, the Function requires the Connection string of…
ericOnline
  • 1,586
  • 1
  • 19
  • 54
2
votes
0 answers

Utilising SAS Token Authentication in Java SE client

I am writing a simple Java client that goes to a workspace server to retrieve some data. Workspace server does not allow public connections and the authentication mechanism is "SAS Token Authentication". When I attempt to connect to the server, I…
Vasilij Nevlev
  • 1,449
  • 9
  • 22
1
vote
1 answer

Azure Blob Storage - create a SAS token that can be used only one time

I'm building reports for a clients in Blob Storage in the background (the clients are not waiting for it). Once a report is ready the client can see it in our UI and he can choose to download it. When we load the screen with all the reports with the…
Tal Nanus
  • 11
  • 1
1
vote
1 answer

Is it possible to upload files to Azure Storage Account using the REST API without passing headers?

Background of my question is that I want to write a custom API that receives file upload requests, validates them, generates a SAS token with the required permissions and returns an HTTP 301 to the calling client containing the URI of an Azure…
Christian Vorhemus
  • 2,396
  • 1
  • 17
  • 29
1
vote
2 answers

Install applications or software on Azure VM with ARM Template

We're trying to install Kaspersky Network Agent on an Azure VM using ARM Template. Also, we need to get the .exe or .msi file from VM storage using SAS token. I was searching for the Template examples to operate but couldn't come up with one that…
1
vote
1 answer

Azure SAS Token for a specific file to be uploaded ? With Read And Expiry Time (JAVA)

I have BlobServiceAsyncClient Used TenantID, clientID, ClientSecret, ContainerName for creating the blobContainerAsyncClient. Uploading file as blobContainerAsyncClient.getBlobAsyncClient(fileName).upload(.........);
piyush
  • 418
  • 1
  • 4
  • 13
1
vote
1 answer

Node.js failed to connect azure-blob using SAS token when domain is customized

Following the official doc, I write this script trying to connect a custom domain azure storage space: const { BlobServiceClient } = require("@azure/storage-blob"); const account = "validaccount"; const sas = "sv=xxxx&......."; const…
kaikaiiiiiii
  • 63
  • 1
  • 7
1
vote
0 answers

download file from azure storage with token get from msal in angular

I build application in angular that need to download files from azure storage account according to authorization of users in AAD. I used msal to authenticate the user and get token from it but i don't know how to use this token in order to download…
1
2 3 4 5 6 7