Last post Jun 30, 2020 08:03 AM by gianboscolo
Jun 17, 2020 03:02 PM|gianboscolo|LINK
I've integrated the Azure authentication in an MVC application via Owin libraries.
= baseurl +
After this, i faced a problem with the Azure session expiration after an hour. To solve this, i implemented a call (for test purposes every 45 minutes) to the Challenge method, like this:
The call ended succesfully but, after this, the Session cookie for the .NET mvc application (with name .ASPXAUTH_ARCHIFLOW_CURRENT) changed and the instance Session lost. Have you any idea to solve this? Or is
there a different way to implement this token refresh? To give a complete view of the environment, i've removed the tag in the application web.config.
Many thanks at all!
Jun 18, 2020 07:44 AM|YihuiSun|LINK
According to your description, I couldn't understand your requirement clearly.
Could you please tell me do you used Azure AD or hosted an identity server in the Azure? If you used Azure AD, could you please post the Azure Ad config in your startup.cs file?
It seems that you want to use refresh token to acquire the ID token to keep the user login in. Is this your requirement?
If you could post more details information, it will be more easily for us to understand your question and find out the solution easily.
Jun 23, 2020 07:55 AM|gianboscolo|LINK
i need to refresh the ID token to durate more than 1 hour (that is the default session duration for Azure). Now, after an hour, the session (in my mvc application) end and, due to architectural reasons, the user is redirected to the login page.
Is that clear or do you need more details?
Jun 24, 2020 09:53 AM|YihuiSun|LINK
Azure AD does not support refreshing the ID token,only the access token can be refreshed.
For a more detailed explanation, you can check this
Jun 25, 2020 10:09 AM|gianboscolo|LINK
I tried to make it work as explained in your link but i'm facing some problems:
Could you please provide an example project where this is done with Owin libraries?
Jun 30, 2020 08:03 AM|gianboscolo|LINK
As an info, our implementation is based on this example: