Does OAuth2 (Authorization code) authentication have any limitations for making any CRUD requests to the BLOB STORAGE API?

sandboxtray 41 Reputation points
2020-10-28T13:38:08.603+00:00

Hello,

Is OAuth2 authentication suitable for making requests to Azure Blob Storage? Does it have any kind of limitation for this?

Also I noticed that OAuth2 (Authorization code) doesn't seem to return a refresh token with the access token that I could use to retrieve another access token when the one received expires. Is this the expected behaviour?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,534 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 34,356 Reputation points Microsoft Employee
    2020-10-28T20:19:49.603+00:00

    @sandboxtray
    Yes it is one of the recommend method for authorization and access to Azure Blobs. Please refer to Authorize access to blobs and queues using Azure Active Directory for more information. We also have examples and more information about how to acquire a token on this page.

    After requesting an access token you should be given a refresh token. Which can then be used to refresh the access token.

    Hope this helps! If you have further questions or issues please let us know.

    -------------------------------

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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. sandboxtray 41 Reputation points
    2020-10-30T09:14:09.883+00:00

    Thank you for the links Deherman. It seems I wasn't adding the offline_access scope to my request next to https://storage.azure.com/user_impersonation scope. Now I receive a refresh token with the access token.

    0 comments No comments