Azure CLI authentication ERROR: AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed

huangapple go评论48阅读模式
英文:

Azure CLI authentication ERROR: AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed

问题

当尝试通过 App Service 从 Azure Maps 获取令牌时,返回以下错误。

"由于未知错误,Azure CLI 身份验证失败。有关更多信息,请参阅故障排除指南。https://aka.ms/azsdk/net/identity/azclicredential/troubleshoot 错误:AADSTS50173:由于被吊销,提供的授予已过期,需要一个新的身份验证令牌。用户可能已更改或重置其密码。此授予在'2022-12-13T05:31:55.3867300Z'发放,此用户的 TokensValidFrom 日期(在此日期之前令牌无效)为'2023-01-28T06:51:55.0000000Z'。"

英文:

When trying to obtain a token from Azure Maps through a App Service, it return the following error.

"Azure CLI authentication failed due to an unknown error. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/azclicredential/troubleshoot ERROR: AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '2022-12-13T05:31:55.3867300Z' and the TokensValidFrom date (before which tokens are not valid) for this user is '2023-01-28T06:51:55.0000000Z'.

答案1

得分: 3

需要清除本地 Azure 凭据并重新登录。

az account clear
az login
英文:

You need to clear the Local Azure Credentials and re-login.

az account clear
az login

答案2

得分: 1

对于相同的错误消息,如果命令az account clearaz login不起作用,请根据此答案在您的本地环境中删除此文件夹(仅适用于Windows)%LOCALAPPDATA%\.IdentityService\msal.cache

英文:

For the same error message, <br/>
if the commands az account clear & az login does not work,

Please delete this folder in your local environment (windows only)
%LOCALAPPDATA%\.IdentityService\msal.cache
according to this answer.

huangapple
  • 本文由 发表于 2023年2月27日 12:45:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/75576848.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定