错误:访问令牌来自错误的发行者

问题描述 投票:0回答:0

我在 Azure 门户上只有一个订阅 不要工作'sls deploy'并得到这个错误

错误:

Error: The access token is from the wrong issuer 'https://sts.windows.net/#####/'. It must match the tenant 'https://sts.windows.net/########/' associated with his subscription. Please use the authority (URL) 'https://login.windows.net/########' to get the token`. 

注意,如果订阅被转移到另一个租户,则对服务没有影响,但有关新租户的信息可能需要时间传播(最多一个小时)。如果您刚刚转移订阅并看到此错误消息,请稍后再试。 在新的 RestError (/home/vost/python-assasment-azure/Volodymyr_Stohnii/my-bot/node_modules/@azure/ms-rest-j s/dist/msRest.node.js:1403:28) 在/home/vost/python-assasment-azure/Volodymyr_Stohnii/my-bot/node_modules/@azure/ms-rest-js/dist/msRest.n ode.js:2592:37 在 processTicksAndRejections (internal/process/task_queues.js:95:5)

我注销并登录到 azure,放置变量:AZURE_SUBSCRIPTION_ID、AZURE_TENANT_ID、AZURE_CLIENT_ID、AZURE_CLIENT_SECRET 删除了 msal_token_cache.json 和 slsTokenCache.json 在 slsTokenCache.json 中重写了租户,但在下一个“sls deploy”之后它没有改变

azure azure-active-directory azure-functions serverless serverless-framework
© www.soinside.com 2019 - 2024. All rights reserved.