Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. #411

@bleze

Description

@bleze

Hi
I have working code which works for normal auth and SAS, but not when SAS is for a container.
The same SAS Token works fine in Storage Explorer, but not through SDK (7.5.0), where I get the error in topic.

azure::storage::cloud_storage_account storage_account;
{
	auto storage_credentials = azure::storage::storage_credentials(leStorageAccountName->text().toStdWString(), 	azure::storage::storage_credentials::sas_credential(leSASToken->text().toStdWString()));
	if (storage_credentials.is_sas() == true)
		storage_account = azure::storage::cloud_storage_account(storage_credentials, true);
}
if (storage_account.is_initialized() == true)
{
	azure::storage::cloud_blob_client blob_client = storage_account.create_cloud_blob_client();
	blob_client.list_containers(); // <- exception occurs here
}

Any ideas what might be wrong? Hopefully in my code and not the SDK :)
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions