有没有办法验证Azure App凭据?
鉴于我有以下来自Azure应用程序注册的信息:
应用程序(客户端)ID, 客户秘密, 目录(租户)ID, 对象ID
是否可以通过编程方式检查其有效的凭据(例如使用卷曲等,而不是PowerShell)?
Given I have the following info from Azure app registration:
Application (client) ID,
Client secret,
Directory (tenant) ID,
Object ID
Is there a way to check it's a valid credential programmatically (like using curl etc but not powershell)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您打算检查客户端的秘密有效性甚至该应用程序的属性,请检查以下C#代码是否可以处理。我们可以尝试查询应用程序并查看秘密的到期日期。请使用
Directory.ald.all
,Application.Read.All许可该API使用客户端凭据流,请授予该应用程序。如果需要,您甚至可以使用curl 这样并使用Post Man或通过检查
参考:
If you meant to check client secret validity or even the properties of that app ,then please check if the below c# code can be worked around .We can try to query the application and see expiry date of secret. Please grant the app with
Directory.Read.All
,Application.Read.All permission to this API for using client credentials flow.If you want , you can even request token using curl this way and validate using post man or by checking token in https://jwt.io .
Reference: check client secret expiry using C#