none
Windows Azure Table Service Signature Access From Program RRS feed

  • Question

  • Hi, Am trying to access the GET Query Tables operation in Windows Azure through Rest API from Objective C. Am getting a 403 Forbidden error. Am suspecting the issue might be with the format of the signature I have included with the request.

    These are the headers am adding/setting in the request :

    Authorization : SharedKey mystorageaccount:peljtyeewzcc4dbmU7+tgyTwhQcPoBxfuPtBA++UPbuckd7c=
    x-ms-date : UTC Current Time
    x-ms-version : 2009-09-19
    DataServiceVersion : 1.0;NetFx
    MaxDataServiceVersion : 1.0;NetFx

    In the above headers' list 'peljtyeewzcc4dbmU7+tgyTwhQcPoBxfuPtBA++UPbuckd7c=' is the encoded (encoded using SHA256) string gotten by encoding the following

    GET\n\n\nWed, 24 Jul 2013 05:27:00\n/myaccountname/Tables

    (I formed the above string referring to Azure REST API doc here http://msdn.microsoft.com/en-us/library/windowsazure/dd179428.aspx - section 'Table Service : Shared Key Authentication')

    This gives the following error on executing the Objective C Code :

    HTTP/1.1 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

    Is the format of the string 

    GET\n\n\nWed, 24 Jul 2013 05:27:00\n/myaccountname/Tables

    correct? Can someone please help?


    • Edited by Priya.nka Wednesday, July 24, 2013 7:47 AM
    Wednesday, July 24, 2013 7:44 AM

Answers