Session expiry in blog storage

vikas 1 Reputation point
2024-02-07T04:00:26.0033333+00:00

Our application front end is developed in React runs in Azure app services and has Azure blob storage as a file storage system in the application.  Users are authenticated to access the Azure App and blob storage by mandatory validation of the User Token and Azure management token in the backend by Rest API. The same Rest API is used to pass tokens and check the sessions.  We are facing an issue where the user token session remains active but the Azure storage access token expires, resulting in session expiry. Need suggestions on how to extend the session validity for a long time in blob storage or any other way to solve the issue. We have checked the documentation for blob storage authentication, but does not address our issue.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,793 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,879 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anand Prakash Yadav 7,785 Reputation points Microsoft Vendor
    2024-02-07T12:45:43.4766667+00:00

    Hello vikas,

    Thank you for posting your query here!

    I understand that your Azure storage access token is getting expired.

    Can you try to refresh token. The default lifetime of refresh token is maximum of 90 days.

    Also, you may try creating a token lifetime policy to customize the lifetime of access token to configure that the access token does not expire for a day (< 24 hours).

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

    0 comments No comments

  2. vikas 1 Reputation point
    2024-03-04T13:53:57.73+00:00

    Hi @Anand Prakash Yadav
    We have created a token lifetime policy and assigned to service principle, but we are facing error.

    0 comments No comments

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.