英文:
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 clear
和az 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)
according to this answer.
%LOCALAPPDATA%\.IdentityService\msal.cache
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论