The following forum(s) have migrated to Microsoft Q&A (Preview): Azure Active Directory!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
Cookie based Open Id authentication access token getting timed out while accessing the API RRS feed

  • Question

  • Dear Team,

    Our ASP.NET 4.6 framework application and API both are secured in Azure AD.

    ASP.NET web application (UI) works fine without session issue through enabling the UseTokenLifetime = false property in OpenIdConnectAuthenticationOptions.

    However we are facing the session time out problem after 30 mins while accessing the API with the access token received through user's interactive sign-in.

    We tried getting the token silently and also using a custom code using webclient but it did not help. (we have almost all the information stored in the claims principle to get the new token). 

    The question is straight forward, what is the best approach to get the new access token for the API? & how to replace old access token received with the new access token stored in the Identity claims principle. 



    Selvakumar Rathinam

    Wednesday, October 23, 2019 6:55 AM

Answers