How to refresh an ID Token from Azure AD in a Web App?

前端 未结 1 730
离开以前
离开以前 2021-01-14 04:52

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

1条回答
  •  春和景丽
    2021-01-14 05:07

    Unfortunately AAD does not support refreshing the ID token. Only the access token can be refreshed. See here: https://azure.microsoft.com/en-us/documentation/articles/active-directory-protocols-oauth-code/#refreshing-the-access-tokens

    But even if it could be refreshed, it's more correct to use an access token when authenticating with another service, so I suggest changing your apps to work this way. The claims on the access token and the id_token are very similar so it should not be a very disruptive change.

    0 讨论(0)
提交回复
热议问题