azure-sdk-for-php icon indicating copy to clipboard operation
azure-sdk-for-php copied to clipboard

Doesn't Support SAS Authentication

Open agilbert201 opened this issue 10 years ago • 15 comments

This makes this library nearly unusable from a perspective of integration scenarios where you are trying to work across vendors or companies. Given that this is a potentially major use case for queues, this is glaring. We got burned, had to redo our work and went to just plain curl / php guzzle. Would have been good to at least now this up front.

agilbert201 avatar Feb 23 '15 16:02 agilbert201

You can use Zend to do that: http://framework.zend.com/manual/1.12/en/zend.service.windowsazure.storage.blob.html

boskee avatar Feb 24 '15 16:02 boskee

Indeed, if you use a Shared Access Signature you can pretty much use any curl like interface, as you don't then have to sign requests. So we ended up using guzzle. But it was rather frustrating to even bother using this lib only to discover it didn't support SAS.

agilbert201 avatar Feb 24 '15 16:02 agilbert201

This is a problem as SAS is a way for you to enable remote (Javascript) clients to write directly to the storage.

dkarlovi avatar Feb 05 '16 10:02 dkarlovi

This could be fixed after we replace PEAR packages.

yaqiyang avatar Mar 21 '16 21:03 yaqiyang

I've hit the same issue trying to use service bus queues via the PHP SDK. ACS strings are no longer generated in the Azure portal and although I've found a few referenced articles mentioning that new SB queues can be created with ACS connection strings via Azure Powershell I hit a dead end trying to accomplish this.

SteveAATW avatar Apr 04 '16 22:04 SteveAATW

Yes, you need to do this in PowerShell for the present time. Make sure you have Azure PowerShell installed, then in a PowerShell command prompt, run Add-AzureAccount # this will sign you in New-AzureSBNamespace -CreateACSNamespace $true -Name ‘mytestbusname' -Location ‘West US’ -NamespaceType 'Messaging'

yaqiyang avatar Apr 04 '16 23:04 yaqiyang

Major issue for me - I had started creating an interface to talk to an existing service bus namespace that is of the "modern" type, i.e. no ACS. Going to end up with one namespace for most functions and a separate one just for a PHP source...

synesthesia avatar Nov 16 '16 15:11 synesthesia

Can this get some traction?

alcohol avatar Jan 26 '17 15:01 alcohol

@alcohol We are working on a major upgrade of Azure SDK for PHP which will use AutoRest to generate PHP code from Swagger.

sergey-shandar avatar Jan 26 '17 18:01 sergey-shandar

@sergey-shandar does this mean AutoRest will get full PHP support?

dkarlovi avatar Jan 27 '17 08:01 dkarlovi

This has become a critical issue with some of our partners who are using this SDK to access service bus, since Microsoft no longer allows creation of ACS namespaces. Any progress here?

smpilo avatar Sep 19 '17 18:09 smpilo

@salameer

sergey-shandar avatar Sep 20 '17 17:09 sergey-shandar

Hi, update please?

smpilo avatar Oct 23 '17 16:10 smpilo

With ACS being removed from support soon, we will be unable to use this SDK soon. Is there an alternative available or coming?

smpilo avatar Sep 24 '18 15:09 smpilo

@salameer , @sergey-shandar

I just re-tested with the latest sdk and it works with shared access keys, so we are OK. You can probably close this issue.

smpilo avatar Sep 27 '18 17:09 smpilo