简体   繁体   English

即使在机密到期后,az login 使用服务主体也能正常工作的任何情况?

[英]any situation where az login using Service principal works even after secret expiry?

I have been recently added to an Azure subscription.我最近加入了 Azure 订阅。 They shared me Service principal details.. which included Application(Client) ID, tenant ID, client secret.他们与我分享了服务主体详细信息……其中包括应用程序(客户端)ID、租户 ID、客户端机密。 I was able to log in successfully.我能够成功登录。 But, When I checked the secret details, it's expired in the month of January 2021. Is there any situation where the Service principal works even after secret expiry?但是,当我查看机密信息时,它已在 2021 年 1 月过期。是否存在机密过期后服务主体仍然工作的情况?

No, It doesn't authenticate with an expired client secret and will result in AADSTS7000222 error.不,它不会使用过期的客户端密钥进行身份验证,并且会导致AADSTS7000222错误。

在此处输入图片说明

I tested the same on Bash and Powershell (Terraform Authentication with SP) using the above shown expired secret, Both gave me the expected results as shown below:我使用上面显示的过期密钥在Bash and Powershell (Terraform Authentication with SP)上进行了相同的测试,两者都给了我预期的结果,如下所示:

在此处输入图片说明

在此处输入图片说明

Note: If You are still seeing the same response , try deleting that secret and create a new one with custom expiry date of 1 day and check if you can successfully login using the new expired secret.注意:如果您仍然看到相同的响应,请尝试删除该密码并创建一个自定义到期日期为 1 天的新密码,并检查您是否可以使用新的已过期密码成功登录。 If you can with the new expired secret as well , then Please create a support request to Azure from Portal (Help+Support) for assisted guidance.如果您也可以使用新的过期密钥,请从门户(帮助+支持)创建对 Azure 的支持请求以获得辅助指导。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 到期时自动更新服务主体客户端密码? - Automatically update Service Principal client secret on expiry? AZ CLI 使用服务主体登录从特定计算机失败 - AZ CLI login using Service Principal fails from specific computer 服务主体 az cli 登录失败 - 未找到订阅 - Service Principal az cli login failing - NO subscriptions found az acr list - 永远不会返回服务主体的任何值 - az acr list - never returns any value for service principal Azure 使用服务主体登录失败并出现 401 - 提供的客户端密码无效 - Azure Login Using Service Principal is failing with 401 - Invalid client secret provided 如何使用 Terraform 为 Azure 服务主体创建客户端密码 - How to create client secret for Azure Service Principal using Terraform 使用 powershell 重置 Azure 服务主体的客户端密码 - Reset the client secret of Azure Service Principal using powershell 使用服务主体登录到 python 脚本 - Login to python script using service principal 服务主体(Azure 应用程序多租户)是否可以使用 AZ CLI 向租户中的应用程序授予管理员许可? - Can a service principal (Azure Application multi-tenant) grant admin consent to application in tenant using AZ CLI? 服务总线 sas 令牌即使在到期时间之后仍然有效 - Service bus sas token working even after the expiry time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM