How to refresh an ID Token from Azure AD in a Web App?
<p>I'm trying to set up an Azure Web App to to authenticate with Azure AD and refresh ID Token behind the scenes automatically.
A great blog post helped me understand how the whole thing works: 
<a href="https://cgillum.tech/2016/03/07/app-service-token-store/" rel="noreferrer">https://cgillum.tech/2016/03/07/app-service-token-store/</a></p>

<p>And this guide linked from it helped me set it up:
<a href="http://cgillum.tech/2016/03/25/app-service-auth-aad-graph-api/" rel="noreferrer">http://cgillum.tech/2016/03/25/app-service-auth-aad-graph-api/</a></p>

<p>It seems enabling refresh tokens for Azure AD authentication isn't that simple so as recommended I used the aforementioned guide to set it up as if it were for GraphApi.</p>

<p>The problem I'm having is even after calling the ".auth/refresh" endpoint and then calling the ".auth/me" endpoint, the only token which is refreshed is the Access Token. That token is of no use to me since I use the Id Token when communicating with my backend server (using an "Authorization Bearer" header).</p>

<p>So how do I get the Id Token to refresh as well?</p>