Forum Discussion
SAS Token in fabric-Not Working
I went through the following documentation. It says OneLake SAS can grant access to files and folders within data items like lakehouses, but it doesn't mention that it requires a combination of a SAS token and a bearer token.
Create a OneLake shared access signature (SAS) (Preview) - Microsoft Fabric | Microsoft Learn
Typically, a SAS token should be sufficient for accessing the resources, as it includes the necessary permissions and signature for authentication. But to troubleshoot this further, you might try including a SAS token and a bearer token in your request and testing whether this would make the call work. You might test this first and let us know the result. Thank you in advance.
Best Regards,
Jing
Community Support Team
Anonymous I tried using a bearer token hoping that bearer token authenticates the request and with all the information in the SAS token the request is authroized.
But unfortunately this isnt the case.Have a look at the screengrab.
Its the bearer token that takes the precedence in the request with SAS token being completely ignored.
I used Azurecmdlet Powershell to create the bearer token.
Connect-AzAccount
$My_Token = Get-AzAccessToken -ResourceTypeName Storage
$My_Token.Token | Set-Clipboard