Server failed to authenticate the request. Please refer to the information in the www-authenticate header

Alex Sanchez 20 Reputation points
2025-04-10T13:50:31.97+00:00

I am trying to authenticate to a Blob Storage using Rclone, even having the service principal file and all the connection working, the service cannot authenticate and shows this message:

--------------------------------------------------------------------------------
RESPONSE 401: 401 Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
ERROR CODE: InvalidAuthenticationInfo
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:xxxxxxxx-901e-0054-181e-aa6d32000000
Time:2025-04-10T13:41:58.5050643Z</Message><AuthenticationErrorDetail>OId is missing.</AuthenticationErrorDetail></Error>
--------------------------------------------------------------------------------

Why is this? In the doc I have found with the service principal json is enough. I do not know why is showing to me

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,143 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hari Babu Vattepally 2,715 Reputation points Microsoft External Staff
    2025-04-16T13:42:42.1+00:00

    Hi @Alex Sanchez,

    I'm glad that you were able to resolve your issue and thank you for posting your solution, so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer. Accepted answers show up at the top, resulting in improved discoverability for others.

    Issue: "Server failed to authenticate the request. Please refer to the information in the www-authenticate header".

    Solution: By assigning the Storage Blob Data Owner role in the app registration which made the request go through.

    If you have any further questions, please let us know in the comments how we can assist. We are here to help you and strive to make your experience better and greatly value your feedback.

    Please let us know if you have any further queries. I’m happy to assist you further. 


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.