You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2024. It is now read-only.
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the SDK was used?
1.5.3
What's the PHP/OS version?
8.1.0
What problem was encountered?
I can't create a SAS using just a Stored Access Policy. The helpers always want a list of permissions and the expiry date.
However, when using Microsoft Azure Storage Explorer, I can generate a SAS that has only the sv, si, sr and sig.
When trying to create a SAS using BlobSharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken and by supplying the permissions and dates from the SAP, I do get a SAS url but it doesn't work.
Steps to reproduce the issue?
$accountName = 'testaccount';
$accountKey = 'blaaa';
$container = 'my-test-container';
$storedAccessPolicy = 'randomname';
// policy is set up to have `rawdl` permissions, and is valid between 2022-02-24T09:29Z and 2022-05-29T08:29Z$helper = newBlobSharedAccessSignatureHelper($accountName, $accountKey);
$sas = $helper->generateBlobServiceSharedAccessSignatureToken(
BlobResources::RESOURCE_TYPE_CONTAINER,
$container,
'rawdl',
'2022-05-29T08:29Z',
'2022-02-24T09:29Z',
'',
'',
$storedAccessPolicy,
);
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the SDK was used?
1.5.3
What's the PHP/OS version?
8.1.0
What problem was encountered?
I can't create a SAS using just a Stored Access Policy. The helpers always want a list of permissions and the expiry date.
However, when using Microsoft Azure Storage Explorer, I can generate a SAS that has only the
sv
,si
,sr
andsig
.When trying to create a SAS using
BlobSharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken
and by supplying the permissions and dates from the SAP, I do get a SAS url but it doesn't work.Steps to reproduce the issue?
The helper outputs (SAS doesn't work):
However, the Microsoft Azure Storage Explorer, generates the following through the UI (working SAS):
I tried generating the SAS myself, but I can't figure out what to sign. The documentation is very vague about it.
I tried the following:
None of these work. They all produce incorrect signatures.
The text was updated successfully, but these errors were encountered: